Merge lp:~tjvries/ubuntu/natty/mawk/fix-for-955791 into lp:ubuntu/natty/mawk
Proposed by
Tom de Vries
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Colin Watson | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~tjvries/ubuntu/natty/mawk/fix-for-955791 | ||||
Merge into: | lp:ubuntu/natty/mawk | ||||
Diff against target: |
26 lines (+7/-1) 2 files modified
debian/changelog (+6/-0) fin.c (+1/-1) |
||||
To merge this branch: | bzr merge lp:~tjvries/ubuntu/natty/mawk/fix-for-955791 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bryce Harrington | Approve | ||
Ubuntu branches | Pending | ||
Review via email: mp+98069@code.launchpad.net |
Description of the change
to reproduce/test:
1. download CAT and guts.awk from https:/
2. run 'cat CAT | valgrind mawk -f guts.awk'
run it in an empty directory because it creates files.
The problem is that memcpy is called from FINgets with src and dest arguments that overlap, which is not allowed.
The fix is to replace the memcpy with memmove, where overlap is allowed.
To post a comment you must log in.
Looks good, and looks like we ship the same version going back to lucid, so I packaged up and uploaded the fix for all releases.