Closed GoogleCodeExporter closed 8 years ago
see http://www.viva64.com/en/b/0271/#ID0EWAAG bool j2k_write_rgn(....) { OPJ_BYTE * l_current_data = 00; OPJ_UINT32 l_nb_comp; OPJ_UINT32 l_rgn_size; opj_image_t *l_image = 00; opj_cp_t *l_cp = 00; opj_tcp_t *l_tcp = 00; opj_tccp_t *l_tccp = 00; OPJ_UINT32 l_comp_room; // preconditions assert(p_j2k != 00); assert(p_manager != 00); assert(p_stream != 00); l_cp = &(p_j2k->m_cp); l_tcp = &l_cp->tcps[p_tile_no]; l_tccp = &l_tcp->tccps[p_comp_no]; l_nb_comp = l_image->numcomps; .... } PVS-Studio's diagnostic message: V522 Dereferencing of the null pointer 'l_image' might take place. j2k.c 5205 The 'l_image' pointer is initialized to zero and is not changed anywhere after that. So, when calling the j2k_write_rgn() function, the null pointer will be dereferenced.
Original issue reported on code.google.com by antonin on 24 Aug 2014 at 9:00
antonin
No archive found. Must be very old. winfried
Original comment by szukw...@arcor.de on 30 Aug 2014 at 12:48
szukw...@arcor.de
indeed.
Original comment by antonin on 30 Sep 2014 at 12:19
Original issue reported on code.google.com by
antonin
on 24 Aug 2014 at 9:00