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

[Linux] buffer overflow in getPixelColor. #19

Closed
smmoosavi opened this issue Apr 2, 2015 · 2 comments
Closed

[Linux] buffer overflow in getPixelColor. #19

smmoosavi opened this issue Apr 2, 2015 · 2 comments

Comments

@smmoosavi
Copy link

When I use getPixelColor, buffer overflow occurred.
code:

var hex = robot.getPixelColor(mouse.x, mouse.y);
*** buffer overflow detected ***: node terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f6fc2dc6e37]
/lib/x86_64-linux-gnu/libc.so.6(+0x109d30)[0x7f6fc2dc5d30]
/lib/x86_64-linux-gnu/libc.so.6(+0x10941b)[0x7f6fc2dc541b]
/lib/x86_64-linux-gnu/libc.so.6(__snprintf_chk+0x78)[0x7f6fc2dc52f8]
/home/smomoo/test/robotjs/node_modules/robotjs/build/Release/robotjs.node(_Z13getPixelColorRKN2v820FunctionCallbackInfoINS_5ValueEEE+0xea)[0x7f6fc22b75da]
node(_ZN2v88internal25FunctionCallbackArguments4CallEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEE+0x9c)[0x82a11c]
node[0x84c1ff]
[0x30cdd3b060a2]

system info:

node v0.12.0
Ubuntu 12.04.1

If you want I can paste memory map here.

@octalmage
Copy link
Owner

Thanks, this falls under the Linux issue. Currently only Mac OS X is supported but we're working on Linux and Windows builds.

@smmoosavi
Copy link
Author

Ok. Txn

@octalmage octalmage added the bug label May 19, 2015
@octalmage octalmage changed the title buffer overflow in getPixelColor [Linux] buffer overflow in getPixelColor. Jul 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants