#18 segfault for filenames without a dot

open
nobody
None
5
2006-11-02
2006-11-02
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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks