2 commits - src/cairo-svg-glyph-render.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 24 21:16:41 UTC 2024


 src/cairo-svg-glyph-render.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bccc70439e85298e8f82b27f6a722b83aca52908
Merge: b807b7a87 f1d1f0ac7
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Mon Jun 24 21:16:38 2024 +0000

    Merge branch 'uninitialized-var' into 'master'
    
    Avoid an uninitialized use
    
    See merge request cairo/cairo!569

commit f1d1f0ac771cfb38c4940ed14413f3ba67343af8
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Mon Jun 24 14:24:24 2024 -0400

    Avoid an uninitialized use
    
    Coverity complained that val may be used uninitialized in this
    function, and I think it is right in this case.

diff --git a/src/cairo-svg-glyph-render.c b/src/cairo-svg-glyph-render.c
index 9a9da2e46..d0448bbda 100644
--- a/src/cairo-svg-glyph-render.c
+++ b/src/cairo-svg-glyph-render.c
@@ -1767,6 +1767,7 @@ _read_png_from_base64 (void *closure, unsigned char *data, unsigned int length)
         }
         if (length > 0 && decode->buf_pos < 0) {
             n = 0;
+            val = 0;
             while (*decode->data && n < 4) {
                 c = *decode->data++;
                 if (c >='A' && c <='Z') {


More information about the cairo-commit mailing list