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)
committerSantiago Vila <sanvila@debian.org>
Thu, 15 Aug 2024 17:00:00 +0000 (19:00 +0200)
commit04e728235e68c5157117252049cd2cc2846adf52
tree48604f80e858a7174e6f918f4b5aa6a53c63deec
parent7743476145f8b9c4f623eaade22a91c10a1875ec
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