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, 20 Feb 2010 10:22:29 +0000 (02:22 -0800)
commitdd70b47582e7619367840c5befe9dcfe235e6839
tree43444c611beebaa8eebf5905b1be5870b8ec711a
parentcb871ae081413612664aae0e38cc57479e39381d
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