libpkgconf: personality: fix out of boundary access #193
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "personality"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
It is possible to set the instruction pointer to undefined values by
using an operator larger than ':' in ASCII.
Since the personality function array does not have 256 entries, an
invalid operator can overflow the array.
Proof of concept:
$ echo "a _ b" > poc
ln -s
(which pkgconf) poc-pkgconf$ ./poc-pkgconf
you seem to be having fun today :)
well I will put this in 1.7.1 and any other silliness you find :)
Heh, seems I am lucky to find these issues while inspecting the internal of pkgconf. Fortunately these issues are easy to fix, so I am fine with that approach.
This one has been merged.
Pull request closed