diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-27 14:10:41 -0800 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2021-03-01 09:32:54 +0200 |
commit | 2107b0a53692fb329175bc16169c3699712187aa (patch) | |
tree | 98c0d15307ba1b6b2c496e52a403f47992bc10d8 /meson_options.txt | |
parent | aa44cddf4ef689f8a3726fcbeedc03f08b12bd82 (diff) |
lib/igt_edid: Allocate raw 8-bytes for VSDB
hdmi_vsdb is an element of cea_vsdb which makes the size of cea_vsdb to
be 8 ( 3bytes ieee_oui ) + ( 5bytes hdmi_vsdb struct), its true that we
only use 7 bytes technically we can only allocate 7byte array but since
we are writing to elements of hdmi_vsdb struct which is sitting at offet
4-8 in cea_vsdb, compiler thinks we have an element which is out of
array bounds since out allocated size is 7bytes
This errors out
../git/lib/igt_edid.c:365:13: error: array subscript 'struct hdmi_vsdb[0]' is partly outside array bounds of 'char[7]' [-Werror=array-bounds]
365 | hdmi->src_phy_addr[0] = 0x10;
| ^~
allocating one extra byte matches with size of cea_vsdb and compiler is
happy
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
Diffstat (limited to 'meson_options.txt')
0 files changed, 0 insertions, 0 deletions