M
mohangupta13
hello all,
I am writing a program to parse HTML code, it reads words (separated
by white spaces) one at a time and implements a state machine
depending upon the occurrence of various tags.
Now after reading about 12,000 words the program crashes and reports a
segmentation fault in strcmp() function some where in the code.
so what may be the causes for strcmp to cause segmentation fault , or
what do you think, is it really strcmp or some place else and is
erroneously being reported as strcmp by gdb??? (its very difficult
for me to debug it, as it occurs after about 12000 iterations)
i have used strcmp about 10 times in the code of about 1000 lines and
I am not even able to recognize the vulnerable portion so can't even
post the entire code...
all help is appreciated ...
Mohan Gupta
I am writing a program to parse HTML code, it reads words (separated
by white spaces) one at a time and implements a state machine
depending upon the occurrence of various tags.
Now after reading about 12,000 words the program crashes and reports a
segmentation fault in strcmp() function some where in the code.
so what may be the causes for strcmp to cause segmentation fault , or
what do you think, is it really strcmp or some place else and is
erroneously being reported as strcmp by gdb??? (its very difficult
for me to debug it, as it occurs after about 12000 iterations)
i have used strcmp about 10 times in the code of about 1000 lines and
I am not even able to recognize the vulnerable portion so can't even
post the entire code...
all help is appreciated ...
Mohan Gupta