When creating QR Code images for long(er) URIs we may end up creating qr codes whose size isn't matching the expected one and this may lead to a wrongly generated texture (and potential memory access errors).
In order to test this from GNOME shell, many components have to be set up that are harder to check so this can be easily simulated using a simple test program that replicates what the shell does to generate the image: https://www.pastery.net/uyzeca/
QrCodes are used only during web authentication that is not something that is generally exposed to users, but this may potentially lead to wrong or missing qr codes textures.
[ Impact ]
When creating QR Code images for long(er) URIs we may end up creating qr codes whose size isn't matching the expected one and this may lead to a wrongly generated texture (and potential memory access errors).
An example: https:/ /i.imgur. com/x3P4dzQ. png
[ Test case ]
In order to test this from GNOME shell, many components have to be set up that are harder to check so this can be easily simulated using a simple test program that replicates what the shell does to generate the image: https:/ /www.pastery. net/uyzeca/
1. Download and run the test script: qrcode- tester. py https:/ /www.pastery. net/uyzeca/ raw qrcode- tester. py /imgur. com/dddTL6u. png (pointing to https:/ /bugs.launchpad .net/ubuntu/ +source/ gnome-shell)
$ wget -O /tmp/shell-
2. Run it with:
$ python3 /tmp/shell-
3. The qrcode should open in a new window and display correctly as
https:/
[ Regression potential ]
QrCodes are used only during web authentication that is not something that is generally exposed to users, but this may potentially lead to wrong or missing qr codes textures.