aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-02 16:40:52 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-02 16:40:52 -0800
commit0a4bc063c35aa5d70b7aaae72029b16a56432563 (patch)
treec7a67a82325b5251d62759f1f370c80029aae64e /src/library.js
parent80200fb5de158f265b76bcf4f99d2c7769e27b12 (diff)
fix another memset fuzz bug
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 83d135ee..1676a82c 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4316,6 +4316,7 @@ LibraryManager.library = {
stop = (ptr + num)|0;
if ((num|0) >= {{{ SEEK_OPTIMAL_ALIGN_MIN }}}) {
// This is unaligned, but quite large, so work hard to get to aligned settings
+ value = value & 0xff;
unaligned = ptr & 3;
value4 = value | (value << 8) | (value << 16) | (value << 24);
stop4 = stop & ~3;