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
When provided with a large quantity of files/data, femtozip gets into an infinite loop. This issue can be tracked down to the insert(int, int*, int*, size_t) method in IntSet.h.
inlineintinsert(int n, int *b, int *end, size_t capacity) {
int *p = b + (n % capacity);
while (*p != -1) {
if (*p == n) {
return0;
}
p++;
if (p == end) {
p = b;
}
}
*p = n;
return1;
}
The loop while (*p != -1) never completes as p is never equal to -1 or n.
The text was updated successfully, but these errors were encountered:
chrido
pushed a commit
to chrido/femtozip
that referenced
this issue
Dec 1, 2016
When provided with a large quantity of files/data, femtozip gets into an infinite loop. This issue can be tracked down to the
insert(int, int*, int*, size_t)
method inIntSet.h
.The loop
while (*p != -1)
never completes asp
is never equal to-1
orn
.The text was updated successfully, but these errors were encountered: