search for: 08iw

Displaying 1 result from an estimated 1 matches for "08iw".

Did you mean: 08i
2005 Jan 08
1
sub( , perl = TRUE) overflow (PR#7479)
...;- sub('\\s+$', '', x, perl = TRUE) ## Removes trailing white spaces x } Expected behavior: > trimwhitespace(" abc") [1] "abc" On Windows: > trimwhitespace(" abc") [1] "abc\0\220\277\036\001\220??\08iW\001p??\0X??\0" ## That's not good! Looks like a buffer overflow On Linux: [1] "abc\0\0\002\0\0 \377\0\0\0\002\0\0\0\006\0\0/\377\0\0" ## Linux goofs as well! Debugging shows that it is the first line in the function that produces the overflow. The overflow seems proporti...