Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 segfault for filenames without a dot

open
nobody
None
5
2006-11-02
2006-11-02
Roger Luethi
No

In pgedit.cpp:797, strrchr() will return NULL if the
given filename is lacking a dot. but the code doesn't
check for it.

Therefore, feeding the program a filename without a dot
results in a segfault as the subsequent strcmp()
expects valid pointers.

Discussion