Revision: 4863 http://geany.svn.sourceforge.net/geany/?rev=4863&view=rev Author: ntrel Date: 2010-04-27 11:52:51 +0000 (Tue, 27 Apr 2010)
Log Message: ----------- Fix invalid memory read (patch by Colomban Wendling, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/tagmanager/vstring.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-04-25 17:43:39 UTC (rev 4862) +++ trunk/ChangeLog 2010-04-27 11:52:51 UTC (rev 4863) @@ -1,3 +1,9 @@ +2010-04-27 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * tagmanager/vstring.c: + Fix invalid memory read (patch by Colomban Wendling, thanks). + + 2010-04-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/build.c, src/dialogs.c, src/msgwindow.c, src/ui_utils.c:
Modified: trunk/tagmanager/vstring.c =================================================================== --- trunk/tagmanager/vstring.c 2010-04-25 17:43:39 UTC (rev 4862) +++ trunk/tagmanager/vstring.c 2010-04-27 11:52:51 UTC (rev 4863) @@ -171,8 +171,8 @@ */ extern void vStringStripTrailing (vString *const string) { - while (isspace ((int) string->buffer [string->length - 1]) && - string->length > 0) + while (string->length > 0 && + isspace ((int) string->buffer [string->length - 1])) { string->length--; string->buffer [string->length] = '\0';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.