This is an automatic generated email to let you know that the following patch 
were queued:

Subject: edid-decode: report if InfoFrame size is too small
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Wed Aug 21 20:06:20 2024 +0200

Print to stderr if the InfoFrame size is too small.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 parse-if.cpp | 2 ++
 1 file changed, 2 insertions(+)

---

diff --git a/parse-if.cpp b/parse-if.cpp
index 589594a516e4..791cf5629a91 100644
--- a/parse-if.cpp
+++ b/parse-if.cpp
@@ -18,6 +18,8 @@ int edid_state::parse_if_hdr(const unsigned char *x, unsigned 
size, unsigned cha
        printf("  Length: %u\n", length);
 
        if (length + 3U > size) {
+               fprintf(stderr, "\nExpected InfoFrame total length of %d, but 
have only %d bytes.\n",
+                       length + 3, size);
                fail("Expected InfoFrame total length of %d, but have only %d 
bytes.\n",
                     length + 3, size);
                return -1;

Reply via email to