GeoIP icon indicating copy to clipboard operation
GeoIP copied to clipboard

core dump when invalid data file supplied

Open chengen opened this issue 11 years ago • 2 comments
trafficstars

hi guys, this problem may be not a big deal. it seems this module don't check the format of the data file. when supply with a invalid data file, it report nothing when initiate but will cause core dump when issue an ip lookup.

chengen avatar Apr 24 '14 09:04 chengen

@chengen

I have some kind of validation mechanism inside the code, this should not be happened.

Before loading the db file, it will always to check if the type of the db file was matched with the module itself.

kuno avatar Apr 25 '14 02:04 kuno

Its strange, it seems the check function think any file as type country, need further investigation.

Thanks.

kuno avatar Apr 25 '14 07:04 kuno