Submit #2525

[PATCH] Small Fixes

Added by Gwenio over 3 years ago. Updated over 3 years ago.

Status:In ProgressStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Fixes an array out of bounds error in usr.bin/shlock/shlock.c. The fix reduces the offset accessed where the error occurs, but increasing the size of the local variable 'buf' to BUFSIZE + 1 would also be a valid fix.

The other changes to the other files are trivial changes to make other code more 'correct' by having it follow strict aliasing rules. As such they are not important unless the code is being compiled with -O2 or higher.


#1 Updated by tuxillo over 3 years ago

  • Status changed from New to In Progress


shlock(1) patch has been pushed. We are assessing the rest of the patches.

Antonio Huete

Also available in: Atom PDF