GNU gettext - Bugs: bug #47991, memory errors in desktop_lex
You are not allowed to post comments on this tracker with your current authentication level.
bug #47991: memory errors in desktop_lex
Submitter: | David Shea <dshea> | ||
Submitted: | Mon 23 May 2016 06:03:06 PM UTC | ||
Category: | Desktop | Severity: | 3 - Normal |
Item Group: | None | Status: | Fix Released |
Privacy: | Public | Assigned to: | ueno |
Open/Closed: | Closed |
Tue 24 May 2016 02:26:11 AM UTC, comment #2: |
Daiki Ueno <ueno> |
Mon 23 May 2016 06:43:20 PM UTC, comment #1: I think I see what happened. Value is getting set to a position in buffer at read-desktop.c:431, but APPEND is called after that, which reallocs buffer and invalidates that pointer. Here's a possible patch:
|
David Shea <dshea> |
Mon 23 May 2016 06:03:06 PM UTC, original submission:
While attempting to merge translations into a .desktop file, one of the existing translations gets modified with a chunk of a new translation for a different string. The badly modified string is returned as token.value from desktop_lex, and that's as far as I went in trying to debug this.
|
David Shea <dshea> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 8 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2023-01-04 | haible | Status | Fixed | Fix Released | |
2016-11-27 | haible | Category | None | Desktop | |
Assigned to | None | ueno | |||
2016-05-24 | ueno | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2016-05-23 | dshea | Attached File | - | Added partial.desktop, #37239 | |
Attached File | - | Added broken.desktop, #37240 | |||
Attached File | - | Added da.po, #37241 |
Powered by Savane 3.13-3230.
Corresponding source code
Thanks for pointing that out. I have pushed the patch with the same treatment for 'locale':
http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=68ab0dafa99f1941b3ebb47b7cf969381e7310f4