[PATCH] [Msan] Fix the if_indextoname.cc test to pass on FreeBSD
Evgeniy Stepanov
eugenis at google.com
Wed May 6 12:49:51 PDT 2015
I don't like it. strncpy zero-initializes this memory whether it's called from inside another interceptor or not.
I'd just change the assert to show that the first strlen()+1 bytes are unpoisoned, without testing the rest of the buffer.
Maybe change the if_indextoname interceptor to poison this area?
http://reviews.llvm.org/D9456
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list