SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

Refactor read_string #54

Closed giulianobelinassi closed 3 years ago

giulianobelinassi commented 3 years ago

Use a self-growing array instead of ptracing the string twice.

Signed-off-by: Giuliano Belinassi gbelinassi@suse.de

susematz commented 3 years ago

But I'll take the patch anyway in this form, checking for allocation errors and for memory leaks on errors (which the patch also contains) should be done in an auditing step.