Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer overflow error #2

Open
ttelford opened this issue Jun 5, 2021 · 0 comments
Open

Buffer overflow error #2

ttelford opened this issue Jun 5, 2021 · 0 comments

Comments

@ttelford
Copy link

ttelford commented Jun 5, 2021

When I run Dirt4, I see the following:

$ node -v                                                                                                                                                                                                                                                                                   
v12.21.0

$ node ac_shifting_leds.js

Connecting to Dirt / Codemasters
Connecting to Assetto Corsa
internal/buffer.js:82
  throw new ERR_OUT_OF_RANGE(type || 'offset',
  ^

RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 64. Received 148
	at boundsError (internal/buffer.js:82:9)
	at Buffer.readFloatForwards [as readFloatLE] (internal/buffer.js:528:5)
	at BufferReader.float (/home/ttelford/src/github/ac_shifting_leds/ac_shifting_leds.js:54:30)
	at CodemastersClient._processUDPMessage (/home/ttelford/src/github/ac_shifting_leds/ac_shifting_leds.js:400:25)
	at Socket.<anonymous> (/home/ttelford/src/github/ac_shifting_leds/ac_shifting_leds.js:104:13)
	at Socket.emit (events.js:314:20)
	at UDP.onMessage [as onmessage] (dgram.js:921:8) {
  code: 'ERR_OUT_OF_RANGE'

I'm happy to include any other dependency information - but I'm not quite sure how to gather them in Node.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant