Comparing version 1.1.3 to 1.2.0
1.2.0 / 2015-10-08 | ||
================== | ||
* force Buffer length to 0 if NULL is read (#42, @saneki) | ||
1.1.3 / 2015-09-23 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -23,0 +23,0 @@ "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)", |
@@ -54,2 +54,9 @@ | ||
it('should return a 0-length Buffer when reading a NULL pointer', function () { | ||
var buf = new Buffer(ref.sizeof.pointer) | ||
ref.writePointer(buf, 0, ref.NULL) | ||
var out = ref.readPointer(buf, 0, 100) | ||
assert.strictEqual(out.length, 0) | ||
}) | ||
describe('offset', function () { | ||
@@ -56,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
429613
2943