Don't trust sscanf not to run off the end of the string
authorAndrew Bartlett <abartlet@samba.org>
Sat, 20 Dec 2008 01:05:48 +0000 (12:05 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 20 Dec 2008 03:44:39 +0000 (14:44 +1100)
commit18c095e5d86d1353eff8aea1b641968d504b6c80
tree6ce4f3558030d24fd7e3c7c1e2c148cbbea13874
parent6488afaafe028ad2deba03517294b577ea3b4167
Don't trust sscanf not to run off the end of the string

The memory allocations here are wasteful, but they do nicely ensure we
cannot walk off the end of the DATA_BLOB that might be a string, or
might be binary and might not be NULL terminated.

Andrew Bartlett
librpc/ndr/uuid.c