zapping-vbi / zvbi

Vertical Blanking Interval (VBI) utilities
Other
5 stars 4 forks source link

‘cr_new_line’ reading 336 bytes from a region of size 288 #27

Closed ileanadumitrescu95 closed 1 year ago

ileanadumitrescu95 commented 1 year ago
atsc-cc.c: In function ‘cc_stream_event’:
atsc-cc.c:2591:25: warning: ‘cr_new_line’ reading 336 bytes from a region of size 288 [-Wstringop-overread]
 2591 |                         cr_new_line (&pr->cr, &ch->timestamp_c0,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2592 |                                      channel, ch->mode,
      |                                      ~~~~~~~~~~~~~~~~~~
 2593 |                                      text, /* length */ 32);
      |                                      ~~~~~~~~~~~~~~~~~~~~~~
atsc-cc.c:2591:25: note: referencing argument 5 of type ‘const vbi_char[42]’
atsc-cc.c:1774:1: note: in a call to function ‘cr_new_line’
 1774 | cr_new_line                     (struct caption_recorder *cr,
      | ^~~~~~~~~~~
ileanadumitrescu95 commented 1 year ago

Resolved with commit ee8d0ea