You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (resolved >= reader->file_size) {
return ErrDatabaseError;
}
int size = (reader->data[resolved] << 8) | reader->data[resolved + 2];
Maybe we need to replace resolved >= reader->file_size with resolved >= reader->data_size, because the boundary of reader->data is data_size not file_size.
The text was updated successfully, but these errors were encountered:
In https://github.com/ipipdotnet/ipdb-c/blob/master/ipdb.c#L142:
Maybe we need to replace
resolved >= reader->file_size
withresolved >= reader->data_size
, because the boundary ofreader->data
isdata_size
notfile_size
.The text was updated successfully, but these errors were encountered: