Rajaram-Regupathy / libtypec

“libtypec” is aimed to provide a generic interface abstracting all platform complexity for user space to develop tools for efficient USB-C port management. The library can also enable development of diagnostic and debug tools to debug system issues around USB-C/USB PD topology.
34 stars 4 forks source link

utils: fix some array overflow issues #37

Open ColinIanKing opened 1 month ago

ColinIanKing commented 1 month ago

There are two issues that cause array index overflows, one is that the call to print_vdo is passing an array size of 7 elements when in fact the arrays are only 6 elements. The second issue is that array pd3p1_fixed_supply_src_field_desc is 1 element too small. Fix these.