[bug-gettext] [bug #47991] memory errors in desktop_lex

2016-05-23 Thread David Shea
URL: Summary: memory errors in desktop_lex Project: GNU gettext Submitted by: dshea Submitted on: Mon 23 May 2016 06:03:06 PM GMT Category: None Severity: 3 - Normal

[bug-gettext] [bug #47991] memory errors in desktop_lex

2016-05-23 Thread David Shea
Follow-up Comment #1, bug #47991 (project gettext): 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: diff --git a/gettext-tools/src/read-de