This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: edid-decode: fail if there are no SVDs in the Data Block
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Fri Apr 11 10:09:02 2025 +0200

Fail if the Data Block has no SVDs (i.e. it is empty).

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

 utils/edid-decode/parse-cta-block.cpp | 2 ++
 1 file changed, 2 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=deb6ea2a7d0ede81e4f2693eec0030e5466cd8ad
diff --git a/utils/edid-decode/parse-cta-block.cpp 
b/utils/edid-decode/parse-cta-block.cpp
index 847bb1fcba80..4817afcf96c2 100644
--- a/utils/edid-decode/parse-cta-block.cpp
+++ b/utils/edid-decode/parse-cta-block.cpp
@@ -581,6 +581,8 @@ void edid_state::cta_svd(const unsigned char *x, unsigned 
n, bool for_ycbcr420)
        bool have_vics_5_and_up = false;
        unsigned i;
 
+       if (!n)
+               fail("This Data Block is empty.\n");
        for (i = 0; i < n; i++)  {
                const struct timings *t = NULL;
                unsigned char svd = x[i];

Reply via email to