Awen
Awen
###Code snippet ``` OPJ_BOOL identify_cid( SOCKET connected_socket, char refcid[], FILE *fp) { char *cid; OPJ_BOOL succeed; if(!(cid = receive_string( connected_socket))){ fprintf( fp, "Error: error in identify_cid(), while receiving cid from...
#### Description In CMS_Conservative_init, w is received from Python code. Its size is not validated hence "self->table[i] = (CMS_CELL_TYPE *) calloc(self->width, sizeof(CMS_CELL_TYPE));" may fail , which cause the Null pointer....
#### Description During using the lib HashTable, the counting is unexpected when the item number is larger than the table size. #### Steps/Code/Corpus to Reproduce ``` from bounter import HashTable...
#### Description During using the lib CountMinSketch, the counting is unexpected when the item number is larger than the table size. #### Steps/Code/Corpus to Reproduce ''' from bounter import CountMinSketch...
### Code snippet ``` Parser_feed(Parser* self, PyObject *args) { ........ if((size_t)data_len > self->buffer_capacity - (self->buffer_end - self->buffer_start)) { self->buffer_capacity = MAX(self->buffer_capacity * 2, self->buffer_end - self->buffer_start + data_len); if(self->buffer ==...