Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: vityan on August 30, 2008, 04:12:45 am

Title: GCC Compiler Error parser crashes C::B on Longhorn System/Hardware DEP
Post by: vityan on August 30, 2008, 04:12:45 am
OS:
Microsoft Windows Server 2008 X64

DEP Status:AlwaysOff

Hardware DEP: NX bit present(ON)

Compiler: GCC 4.3.2 TDM(Tested with GCC 4.3.1-TDM too)

C:B Version: Nightly Build 5193 and 5195

Possible cause: Every long error report from gcc seems to cause buffer overflow in C::B.

How to reproduce:
Write code which passes char or void pointer as argument to function which takes a function pointer as parameter actually(try PROC or FARPROC type for that)

In 85% of cases C::B will crash during attempt to print GCC's error(about mismatching parameter) with StackCrash error(Seems to be Hardware DEP related).