Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ref

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ref - npm Package Compare versions

Comparing version 1.1.3 to 1.2.0

5

History.md
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 @@ ==================

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc