News for hackers. Stuff that matters.
Re:Make your STDERR red by bdonlan on Tuesday December 13, 2011 @09:56PM (#3350368)
This actually doesn't work for processes using stderr on eglibc 2.13 - fprintf internally outputs via a different path that can't be hooked in this manner. On x86, you could try overwriting the system call gate pointer to a hook function, but on x86_64 you're basically stuck, unless you attach a debugger or something.

Also, the write prototype is incorrect (using int instead of size_t) and could break on 64-bit machines.

Re:Make your STDERR red by sickill on Wednesday December 14, 2011 @04:27AM (#3351206)
Thx, will fix int -> size_t.