[Gambas-devel] Bug detected in gb.data
gambas at ...1...
Sat Jan 5 10:46:37 CET 2013
The Coverity Scan software has detected the following problem in gb.data :
The following function in 'c_list.c' is incorrect:
static inline int VAL_is_valid(VAL *val)
int i = val->fidx + val->ck->first;
int j = val->lidx + val->ck->last;
if (i != j || !val->ck || val->fidx == -1 || i > val->ck->last)
because 'val->ck->first' is accessed before being null-checked.
I don't know if it is problematic, but it seems. Can you check that?
More information about the Devel