Opened on 03/10/21 at 13:56:34
Closed on 04/29/21 at 15:27:08
#4326 closed defect (fixed)
objectextendinformation.c: Dereference after null check error spotted by Coverity
Reported by: | Ryan Long | Owned by: | Ryan Long <ryan.long@…> |
---|---|---|---|
Priority: | normal | Milestone: | 6.1 |
Component: | score | Version: | 6 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
CID 26033: Dereference after null check in _Objects_Extend_information().
172 if ( old_maximum > extend_count ) { 173 /* 174 * Copy each section of the table over. This has to be performed as 175 * separate parts as size of each block has changed. 176 */ CID 26033 (#1 of 1): Dereference after null check (FORWARD_NULL)11. var_deref_model: Passing null pointer information->object_blocks to memcpy, which dereferences it. 177 memcpy( 178 object_blocks, 179 information->object_blocks, 180 block_count * sizeof( *object_blocks ) 181 );
Change History (1)
comment:1 Changed on 04/29/21 at 15:27:08 by Ryan Long <ryan.long@…>
Owner: | set to Ryan Long <ryan.long@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In cdf66529/rtems: