Don't go beyond buffer length when printing descriptions
authorJustin Pettit <jpettit@nicira.com>
Fri, 22 Jan 2010 23:12:34 +0000 (15:12 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 23 Jan 2010 02:08:07 +0000 (18:08 -0800)
commit716346cb67b705a164a2203ab38aefe4a84cd826
tree32b5239118227b47d99c078eb870517aa32bace1
parent83fbfe31465e47717226566a4fe69ce8b642a603
Don't go beyond buffer length when printing descriptions

Prevent reading past the end of the buffer when a description is not
null-terminated.

Reported-by: Ben Pfaff <blp@nicira.com>
lib/ofp-print.c