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