Re: [Geany-devel] [geanygdb plugin] Stack overflow when activating it.

2009-09-03 Thread Thomas Martitz
Enrico Tröger schrieb: Hmm, right. Still, IMO it's weird to set \o at sizeof(buf)-1. Regards, Enrico It may look strage, but it's the only way (and therefore the standard way) to get around the unsafe nature of strncpy. /me hints at strlcpy :) Best regards.

[Geany-devel] [geanygdb plugin] Stack overflow when activating it.

2009-09-02 Thread Eugene Arshinov
Hi all. The trouble is caused by unsafe usage of `strncpy' and long strings in Russian localization. I found that the stack overflow is caused by the following code (geany-plugins/geanygdb/src/gdb-ui-main.c : 366) 8 if (text disable_mnemonics) {

Re: [Geany-devel] [geanygdb plugin] Stack overflow when activating it.

2009-09-02 Thread Enrico Tröger
On Wed, 02 Sep 2009 20:48:17 +0400, Eugene wrote: Hi all. The trouble is caused by unsafe usage of `strncpy' and long strings in Russian localization. I found that the stack overflow is caused by the following code (geany-plugins/geanygdb/src/gdb-ui-main.c : 366) 8