maxmind/libmaxminddb — pull request #67 by oschwald (2014-12-11 19:47:02+00:00)
Title: Fixed two issues with our error handling of strtol

* If you used a non-integer string as an array index when doing a lookup
* with `MMDB_get_value`, `MMDB_vget_value`, or `MMDB_aget_value`, the first element
of the array would be returned rather than an error. A
`MMDB_LOOKUP_PATH_DOES_NOT_MATCH_DATA_ERROR` error will now be returned.
* If a number larger than `LONG_MAX` was used in the same functions,
`LONG_MAX` would have been used in the lookup. Now a
`MMDB_INVALID_LOOKUP_PATH_ERROR` error will be returned.
* I added tests for both of these as well as a missing test for a negative
array index.