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: fix DisplayID checksum regression
Author:  Hans Verkuil <hverk...@xs4all.nl>
Date:    Fri Feb 21 00:02:06 2025 +0100

The checksums were always reported as incorrect due to a
regression from an earlier commit.

Fixes: 585835446777 ("edid-decode: fix buffer overread on displayid block 
parsing")
Signed-off-by: Hans Verkuil <hverk...@xs4all.nl>

 utils/edid-decode/parse-displayid-block.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=7c8623efa8c3ce08cc0eef371cc4141344a7bd10
diff --git a/utils/edid-decode/parse-displayid-block.cpp 
b/utils/edid-decode/parse-displayid-block.cpp
index c3f9c117fd32..a899a1d6d2fa 100644
--- a/utils/edid-decode/parse-displayid-block.cpp
+++ b/utils/edid-decode/parse-displayid-block.cpp
@@ -2186,7 +2186,7 @@ void edid_state::parse_displayid_block(const unsigned 
char *x)
         * (excluding DisplayID-in-EDID magic byte)
         */
        data_block.clear();
-       do_checksum("  ", x + 1, saved_length, x[2] + 4);
+       do_checksum("  ", x + 1, saved_length + 5, x[2] + 4);
 
        unused_bytes = 0x7f - (1 + saved_length + 5);
        if (!memchk(x + 1 + saved_length + 5, unused_bytes)) {

Reply via email to