Message ID | 20210926083330.5206-23-joevt@shaw.ca (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | edid-decode: bug fixes, additions, changes | expand |
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp index 5266bb3..dc2ec7b 100644 --- a/parse-displayid-block.cpp +++ b/parse-displayid-block.cpp @@ -1745,8 +1745,11 @@ unsigned edid_state::displayid_block(const unsigned version, const unsigned char if (!tag && !len) { // A Product Identification Data Block with no payload bytes is not valid - assume this is the end. + data_block.clear(); // Probably not a Product Identification Data Block so clear this. if (!memchk(x, length)) { + printf(" Filler:\n"); fail("Non-0 filler bytes in the DisplayID block.\n"); + hex_block(" ", x, length); } return length; }
It's probably not a Product Identification Data Block or any kind of block so data_block should be cleared (so that the block name doesn't appear in the Failures section for this fail). Output hex data because it might contain interesting data (it's at least known to be not zero). Signed-off-by: Joe van Tunen <joevt@shaw.ca> --- parse-displayid-block.cpp | 3 +++ 1 file changed, 3 insertions(+)