Skip to content

Commit

Permalink
Bound access check
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeena840 committed Aug 6, 2019
1 parent 8ceb3cc commit 81bf2a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc/record/record-main.c
Expand Up @@ -275,6 +275,7 @@ static void print_item( client_context *cctx, const client_item *item )

if( cctx->thread_id_name[ item->cpu ].name_index == 0 ){
size_t api_id = ( ( cctx->thread_id_name[ item->cpu ].thread_id >> 24 ) & 0x7 );
assert( api_id < 3 );
size_t thread_id = ( cctx->thread_id_name[ item->cpu ].thread_id & 0xffff );
uint64_t thread_name = item->data;

Expand Down

0 comments on commit 81bf2a9

Please sign in to comment.