#329 versionbuf buffer overflow in 'ja' locale

Bug
open
nobody
None
5
2005-07-06
2005-07-06
Anonymous
No

Grip 3.3.1 crashed due to buffer overflow in 'ja' locale.

In the function MakeAboutPage() of grip.c, versionbuf declared

char versionbuf[20];

and used as follows.

sprintf(versionbuf,_("Version %s"),VERSION);
label=gtk_label_new(versionbuf);

When using po/ja.po, this string needs 22bytes length.
And this causes buffer overflow.

Please increase the size of versionbuf and check the size with g_snprinf().
Or use g_strdup_printf() to avoid this.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks