HTTP: fix stack overwrite due to format string error.
authorKp <kp@valhallalegends.com>
Sat, 13 Dec 2008 03:38:54 +0000 (21:38 -0600)
committerKp <kp@valhallalegends.com>
Sat, 13 Dec 2008 19:57:36 +0000 (13:57 -0600)
commitb2b91b074b6701455053425b583a6fd0beedc8cc
tree5cb69defc52bdd4dfdd0344e419f635bdaaec2b4
parent069e1969a3c2593056ecd1221e7df8bd52ede13f
HTTP: fix stack overwrite due to format string error.

On AMD64, %lu refers to a 64-bit unsigned value, but the address passed
to sscanf points to a 32-bit unsigned value.  This causes an adjoining
value on the stack to be overwritten with data from the converted
integer.  Fix the format string to match the size of the supplied value,
and remove the pointer cast.
lib/silchttp/silchttpserver.c