From 1ed0c88c32425d3523baea9017ccf0275df4af66 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 19 Dec 2010 06:28:37 +0000 Subject: [PATCH] protect against potential buffer overflow --- chrome/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 index 51f10f4d7..69253c5ef 100644 --- 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