aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-28 15:05:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:02:33 -0700
commitbeb1218ce0f6d1d539016ee82bc17b347569306a (patch)
tree3a466236565b5e2f9c13f34d1fd7a603321973c6
parent37ef568b2ef5f6f7cd5e5b9fa9f0f7a14374ddf9 (diff)
speed up corruption checker
-rw-r--r--src/corruptionCheck.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corruptionCheck.js b/src/corruptionCheck.js
index aa1e73df..8b37120a 100644
--- a/src/corruptionCheck.js
+++ b/src/corruptionCheck.js
@@ -67,12 +67,12 @@ var CorruptionChecker = {
},
fillBuffer: function(buffer, size) {
for (var x = buffer; x < buffer + size; x++) {
- {{{ makeSetValue('x', 0, 'CorruptionChecker.canary(x)', 'i8') }}};
+ {{{ makeSetValue('x', 0, 'CorruptionChecker.canary(x)', 'i8', null, null, null, 1) }}};
}
},
checkBuffer: function(buffer, size) {
for (var x = buffer; x < buffer + size; x++) {
- if (({{{ makeGetValue('x', 0, 'i8') }}}&255) != CorruptionChecker.canary(x)) {
+ if (({{{ makeGetValue('x', 0, 'i8', null, null, null, null, 1) }}}&255) != CorruptionChecker.canary(x)) {
assert(0, 'Heap corruption detected!' + [x, buffer, size, {{{ makeGetValue('x', 0, 'i8') }}}&255, CorruptionChecker.canary(x)]);
}
}