Skip to content

Commit

Permalink
overflow 32bit integer
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jul 26, 2013
1 parent 6baf829 commit 0bfc8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ccv_icf.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static uint8_t* _ccv_icf_precompute_features(ccv_icf_feature_t* features, int fe
for (j = 0; j < feature_size; j++)
{
ccv_icf_feature_t* feature = features + j;
featval[j * (positives->rnum + negatives->rnum) + i] = _ccv_icf_run_feature(feature, ptr, sat->cols, ch, 1, 1);
featval[(size_t)j * (positives->rnum + negatives->rnum) + i] = _ccv_icf_run_feature(feature, ptr, sat->cols, ch, 1, 1);
}
ccv_matrix_free(sat);
#ifdef USE_DISPATCH
Expand Down

0 comments on commit 0bfc8aa

Please sign in to comment.