Forum: Ruby-core segmentation fault/buffer overrun in pack.c (encodes)

0bf22001ef2821e76ee1e922b946afca?d=identicon&s=25 unknown (Guest)
on 2014-08-04 13:56
(Received via mailing list)
Issue #10019 has been updated by Tomas Hoger.


Nobuyoshi Nakada wrote:
> `encodes()` does uuencode and mime-encode, so never writes '\0'.

Sorry, my bad - I already forgot it was '\n' that was written out of
bounds, not '\0'.

----------------------------------------
Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
https://bugs.ruby-lang.org/issues/10019#change-48190

* Author: Will Wood
* Status: Feedback
* Priority: Normal
* Assignee:
* Category: core
* Target version:
* ruby -v: ruby 2.1.2p168 (2014-07-06 revision 46721) [i386-mingw32]
* Backport: 2.0.0: REQUIRED, 2.1: DONE
This topic is locked and can not be replied to.