PaddeK / node-maxmind-db

This is the pure Node API for reading MaxMind DB files. MaxMind DB is a binary file format that stores data indexed by IP address subnets (IPv4 or IPv6).
GNU Lesser General Public License v2.1
88 stars 25 forks source link

[Issue #15] handle corrupt database file #16

Closed rajeshsegu closed 9 years ago

rajeshsegu commented 9 years ago

handle corrupt database files better. ( specially zero size files )

rajeshsegu commented 9 years ago

This is the fix for #15 where the library hangs when given a zero size(corrupt) file.

the-eater commented 9 years ago

Nice job! Thanks!