WUtil: Fixed risky code for de-escaping of strings
commitfd02f5f0832dd524352d11f77bc0fccf6ecc0047
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 4 May 2013 13:43:28 +0000 (4 15:43 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 4 May 2013 15:25:44 +0000 (4 16:25 +0100)
tree2f5333b1037b668468a940be54be054fe8fd4284
parentf386e34d297adf8e515ff5a2d1a21bfad2cd4e9b
WUtil: Fixed risky code for de-escaping of strings

The internal function 'unescapestr' is used to transform strings which
may contain escape sequences (\x) into their plain representation.

There are a few cases where the function can misbehave (typically parse
after the end of string, thus writing past the end of the reserved
result area) which can be a source of problem later. The new code
should be safer.
WINGs/proplist.c