X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-qt%2Fqt-qrcode%2Fqt-qrcode%2F0002-fix-dangling-pointer.patch;fp=recipes-qt%2Fqt-qrcode%2Fqt-qrcode%2F0002-fix-dangling-pointer.patch;h=0000000000000000000000000000000000000000;hb=1b72a0f90fa7d1b45eb1017629cc83dcd8971c48;hp=489a49edbaf035de832e49c79f3ae40f72959aae;hpb=94a051785cdb588bc3a475a5490f1f286176d646;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-qt/qt-qrcode/qt-qrcode/0002-fix-dangling-pointer.patch b/recipes-qt/qt-qrcode/qt-qrcode/0002-fix-dangling-pointer.patch deleted file mode 100644 index 489a49edb..000000000 --- a/recipes-qt/qt-qrcode/qt-qrcode/0002-fix-dangling-pointer.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 5fc5a92e3568674a08a6e7594d050e963d0d854b Mon Sep 17 00:00:00 2001 -From: Raquel Medina -Date: Mon, 18 May 2020 19:18:00 +0200 -Subject: [PATCH] fix dangling pointer - -Bug-AGL: SPEC-3664 -Signed-off-by: Raquel Medina ---- - lib/qtqrcode.cpp | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/lib/qtqrcode.cpp b/lib/qtqrcode.cpp -index a7000f0..825c354 100644 ---- a/lib/qtqrcode.cpp -+++ b/lib/qtqrcode.cpp -@@ -116,8 +116,7 @@ void QtQrCode::setBaseQrCodeData(QRcode *qrCode) - { - d->width = qrCode->width; - d->data.clear(); -- // TODO: Beware it here -- d->data = (const char *) qrCode->data; -+ d->data = QByteArray(reinterpret_cast(qrCode->data), d->width*d->width); - QRcode_free(qrCode); - } -