fix(wechat_qrcode): Init nBytes after the count value is determined (#3480)
authorNano <nanoapezlk@gmail.com>
Wed, 26 Apr 2023 07:09:52 +0000 (15:09 +0800)
committerJochen Sprickerhof <jspricke@debian.org>
Fri, 12 May 2023 09:40:38 +0000 (10:40 +0100)
commit38ee75915ddcf82731d7e511dd857f240ef8146e
treeec84dbf1daa1393ce2c0842a62af8219cd6f5d0f
parent4bab33d796189888261d6c3189e92d46634ae4e4
fix(wechat_qrcode): Init nBytes after the count value is determined (#3480)

* fix(wechat_qrcode): Initialize nBytes after the count value is determined

* fix(wechat_qrcode): Incorrect count data repair

* chore: format expr

* fix(wechat_qrcode): Avoid null pointer exception

* fix(wechat_qrcode): return when bytes_ is empty

* test(wechat_qrcode): add test case

---------

Co-authored-by: GZTime <Time.GZ@outlook.com>
Gbp-Pq: Name 0009-fix-wechat_qrcode-Init-nBytes-after-the-count-value-.patch
contrib/modules/wechat_qrcode/src/zxing/qrcode/decoder/decoded_bit_stream_parser.cpp
contrib/modules/wechat_qrcode/test/test_qrcode.cpp