www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1ed0c88c32425d3523baea9017ccf0275df4af66
parent afea210a9989a213cc968349a54300beb25698a7
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 19 Dec 2010 06:28:37 +0000

protect against potential buffer overflow


Diffstat:
Mchrome/content/zotero/xpcom/integration_worker.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/integration_worker.js b/chrome/content/zotero/xpcom/integration_worker.js @@ -49,7 +49,7 @@ onmessage = function(event) { var fd = open(path, 0); // read from fifo and close it - read(fd, buf, BUFFER_SIZE); + read(fd, buf, BUFFER_SIZE-1); close(fd); // extract message