Better HN
topnewbestaskshowjobs
Log inSign up

vvde

3 karma · joined Feb 6, 2014 (12y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

Making sds a typedef for char* is very convenient. But it makes it very easy to pass an sds to a function that expects a C string without checking for null bytes.

Ruby, Java, Perl, PHP have all had security problems when interacting with C because they failed to properly distinguish binary-safe strings and C strings.

http://insecure.org/news/P55-07.txt http://cwe.mitre.org/data/definitions/626.html