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

Heap buffer overflow introduced in #3553 #3572

Closed
Asmod4n opened this Issue Apr 1, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@Asmod4n
Contributor

Asmod4n commented Apr 1, 2017

https://github.com/mruby/mruby/pull/3553/files#diff-d13030dbdc98ec484fa8f0e9cbc31443R218 is accessing one element too much of the array, tests still pass when <= is changed to < in for (j = i; j <= a->len - len; ++j) { block but dunno if it still works as expected.

These kind of bugs can be found quite good with

  conf.cc.flags << '-fsanitize=address'
  conf.linker.flags << '-fsanitize=address'

added to build_config.rb

@matz matz closed this in 5d00e85 Apr 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment