unrtf throws a coredump on some rtfs
Bug #1310786 reported by
Walter Haslbeck
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unrtf (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
unrtf throws a coredump on some rtfs.
Ubuntu-Release: Ubuntu 14.04 LTS
Package: unrtf 0.21.5-1 (amd64)
I attach a test.rtf to reproduce the bug and a patch that fixes this bug.
But: this is just a PoC fix! It checks if the result of word_string is not null before the data is accessed (in the \\author section). Since word_string is used many more times in convert.c, every result should be checked.
To post a comment you must log in.
The attachment "patch.txt" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]