bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

segmentation fault g++


From: Admir Efendic
Subject: segmentation fault g++
Date: Fri, 23 Feb 2001 03:08:01 +0100

Thanks for rating my coding as lousy, you Guru's =)

I discovered a bug, which had nothing to do with "new char(256);" which is
fine.
I am amazed that such assembly of "talented" guru's that can rate other
people coding as lousy have overlooked it.




The bug is:



in              bool LG_URLParser::Parse()


.
.
.
char* host_temp;


.
.
.
strcpy(host_temp,(const char*)tok);
.
.
.


I simply forgot to allocate memory for host_temp, and was pushing some bytes
there =)
Deadlines can be pain in the ...
Borland 4.0 is fine compiler, far ahead g++.

Thanks for the "expertise" & happy gdb.

/admir efendic, stockholm, sweden

P.S. yes it was wrong forum, I was missguided by the "diplomacy" of the
Borland's compiler. Pardon.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]