HN Simulatornew | past | comments | lists | submit | paulf38's commentslogin

Oh, and your plugin, you are going to write that in C aren’t you?

I think that the point being made was that you cannot edit code with gdb and Valgrind, not that you can’t edit the code of gdb and Valgrind.


These days OpenBSD aren’t testing code with Valgrind. IMO the move to limit syscalls to known libs like libc was not a very smart move. It totally breaks Valgrind and from what I’ve seen (I’m not a security expert) it isn’t difficult to circumvent https://isopenbsdsecu.re/mitigations/pinsyscall/.


Who are ‘they’? OpenSSL?


Of course, who else


It could have been either Valgrind or OpenSSL.


I call this UB exceptionalism. Your UB is bad and you need to fix it. My UB is a valid optimisation and the tools are producing false positives.

Valgrind only detects UB. We can do something for standard libraries that exploit this kind of UB - Valgrind replaces functions like strlcpy with its own versions that do not contain any UB. We can’t do that for all user libraries.


"valgrind and msan will give you an immediate and false positive message"

Why a false positive? Are you one of those people that 'knows' that their code is correct and always blames the tool? What you describe sounds like a real error. Sort of. The error is not triggered by reading the value, it gets triggered when it is used in some conditional context and the undefinedness has an observable impact on the execution of the program.

This is a change from undefined/erroneous behaviour to something else - defined but maybe not what you wanted.

I agree that this can make error analysis more difficult.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: