diff options
| author | Takashi Sogabe <[email protected]> | 2012-10-18 17:35:56 +0900 |
|---|---|---|
| committer | Takashi Sogabe <[email protected]> | 2012-10-18 17:35:56 +0900 |
| commit | c2a6ff7af8a49609fb3126271cf4ebbfa3c2403e (patch) | |
| tree | b73a4ec359649f238d1600a61ef31ae0002dbd26 /src/proc.c | |
| parent | 73e9c78bc40e9c9cfb359042f39925c084ced40e (diff) | |
| download | mruby-c2a6ff7af8a49609fb3126271cf4ebbfa3c2403e.tar.gz mruby-c2a6ff7af8a49609fb3126271cf4ebbfa3c2403e.zip | |
Fix wrong storage of data when hex-style string is loaded
This patch fixes corruption of data when hex-style string is
loaded.
I saw following phenomenon in an ubuntu/amd64 environment.
Test code:
str = "\x0\x1\x2\x03\x04\x05\x06\a\b\t\n\v\f\r\x0E\x0F\x10"
p str[-1] == "\0x10"
Output(binary program with mrbc -B):
false
Output(script with mruby):
true
Diffstat (limited to 'src/proc.c')
0 files changed, 0 insertions, 0 deletions
