Undefined behaviour in abigail::tool_utils::string_ends_with.

Eric Fiselier eric@efcs.ca
Thu Jan 1 00:00:00 GMT 2015


Hi Doji,

Currently string_ends_with will crash if the suffix is longer than the
string. I've attached a patch that fixes this bug.

I discovered the bug by running abicompat ./a.out <lib1> <lib2>. This
command crashed because guess_file_type will call
string_ends_with("./a.out", ".tar.gz").

/Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libabigail/attachments/20150101/1f9df3f8/attachment.bin>


More information about the Libabigail mailing list