poppler-25.02.0-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-227): [#def1]
poppler-25.02.0/glib/poppler-document.cc:2966: error[stlcstr]: Dangerous usage of c_str(). The value returned by c_str() is invalid after this call.
# 2964|       const std::string &encoding = info->getEncoding();
# 2965|       if (!encoding.empty()) {
# 2966|->         return encoding.c_str();
# 2967|       } else {
# 2968|           return nullptr;

Error: CPPCHECK_WARNING (CWE-457): [#def2]
poppler-25.02.0/glib/poppler-page.cc:2529: error[uninitvar]: Uninitialized variable: prev_word_i
# 2527|   
# 2528|               for (word_i = word_sel->getBegin(); word_i < end; word_i++) {
# 2529|->                 if (!prev_word || !word_text_attributes_equal(word, word_i, prev_word, prev_word_i)) {
# 2530|                       attrs = poppler_text_attributes_new_from_word(word, word_i);
# 2531|                       attrs->start_index = offset;

Error: CPPCHECK_WARNING (CWE-476): [#def3]
poppler-25.02.0/glib/tests/pdfdrawbb.c:28: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outfile
#   26|   
#   27|       outfile = malloc(strlen(infile) + strlen(suffix) + 10);
#   28|->     strcpy(outfile, basename);
#   29|       g_free(basename);
#   30|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
poppler-25.02.0/glib/tests/pdfdrawbb.c:28:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘outfile’ where non-null expected
poppler-25.02.0/glib/tests/pdfdrawbb.c:27:15: acquire_memory: this call could return NULL
poppler-25.02.0/glib/tests/pdfdrawbb.c:28:5: danger: argument 1 (‘outfile’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#   26|   
#   27|       outfile = malloc(strlen(infile) + strlen(suffix) + 10);
#   28|->     strcpy(outfile, basename);
#   29|       g_free(basename);
#   30|   

Error: CPPCHECK_WARNING (CWE-476): [#def5]
poppler-25.02.0/glib/tests/pdfdrawbb.c:31: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: outfile
#   29|       g_free(basename);
#   30|   
#   31|->     pos = strrchr(outfile, '.');
#   32|       if (pos != NULL && (!strcmp(pos, ".pdf") || !strcmp(pos, ".PDF"))) {
#   33|           *pos = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
poppler-25.02.0/glib/tests/pdfdrawbb.c:93:8: warning[-Wanalyzer-malloc-leak]: leak of ‘pdfaddsuffix(infilename, "bb")’
poppler-25.02.0/glib/tests/pdfdrawbb.c:45:5: enter_function: entry to ‘main’
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:8: branch_true: following ‘true’ branch (when ‘usage == 0’)...
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:19: branch_true: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:9: branch_false: following ‘false’ branch...
poppler-25.02.0/glib/tests/pdfdrawbb.c:84:22: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:85:8: branch_false: following ‘false’ branch (when ‘infilename’ is non-NULL)...
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: call_function: calling ‘pdfaddsuffix’ from ‘main’
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: return_function: returning to ‘main’ from ‘pdfaddsuffix’
poppler-25.02.0/glib/tests/pdfdrawbb.c:93:8: danger: ‘pdfaddsuffix(infilename, "bb")’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#   91|   
#   92|       infile = g_file_new_for_path(infilename);
#   93|->     if (infile == NULL) {
#   94|           exit(EXIT_FAILURE);
#   95|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
poppler-25.02.0/glib/tests/pdfdrawbb.c:98:8: warning[-Wanalyzer-malloc-leak]: leak of ‘pdfaddsuffix(infilename, "bb")’
poppler-25.02.0/glib/tests/pdfdrawbb.c:45:5: enter_function: entry to ‘main’
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:8: branch_true: following ‘true’ branch (when ‘usage == 0’)...
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:19: branch_true: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:9: branch_false: following ‘false’ branch...
poppler-25.02.0/glib/tests/pdfdrawbb.c:84:22: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:85:8: branch_false: following ‘false’ branch (when ‘infilename’ is non-NULL)...
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: call_function: calling ‘pdfaddsuffix’ from ‘main’
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: return_function: returning to ‘main’ from ‘pdfaddsuffix’
poppler-25.02.0/glib/tests/pdfdrawbb.c:93:8: branch_false: following ‘false’ branch...
poppler-25.02.0/glib/tests/pdfdrawbb.c:97:11: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:98:8: danger: ‘pdfaddsuffix(infilename, "bb")’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#   96|   
#   97|       doc = poppler_document_new_from_gfile(infile, NULL, NULL, &err);
#   98|->     if (doc == NULL) {
#   99|           g_printerr("error opening pdf file: %s\n", err->message);
#  100|           g_error_free(err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
poppler-25.02.0/glib/tests/pdfdrawbb.c:107:8: warning[-Wanalyzer-malloc-leak]: leak of ‘pdfaddsuffix(infilename, "bb")’
poppler-25.02.0/glib/tests/pdfdrawbb.c:45:5: enter_function: entry to ‘main’
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:8: branch_true: following ‘true’ branch (when ‘usage == 0’)...
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:19: branch_true: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:73:9: branch_false: following ‘false’ branch...
poppler-25.02.0/glib/tests/pdfdrawbb.c:84:22: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:85:8: branch_false: following ‘false’ branch (when ‘infilename’ is non-NULL)...
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: call_function: calling ‘pdfaddsuffix’ from ‘main’
poppler-25.02.0/glib/tests/pdfdrawbb.c:88:19: return_function: returning to ‘main’ from ‘pdfaddsuffix’
poppler-25.02.0/glib/tests/pdfdrawbb.c:93:8: branch_false: following ‘false’ branch...
poppler-25.02.0/glib/tests/pdfdrawbb.c:97:11: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:98:8: branch_false: following ‘false’ branch...
poppler-25.02.0/glib/tests/pdfdrawbb.c:106:14: branch_false: ...to here
poppler-25.02.0/glib/tests/pdfdrawbb.c:107:8: danger: ‘pdfaddsuffix(infilename, "bb")’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  105|   
#  106|       npages = poppler_document_get_n_pages(doc);
#  107|->     if (npages < 1) {
#  108|           g_print("no page in document\n");
#  109|           exit(EXIT_FAILURE);

Error: CPPCHECK_WARNING (CWE-562): [#def9]
poppler-25.02.0/goo/gmem.h:192: error[returnDanglingLifetime]: Returning pointer to local variable 'r' that will be invalid when returning.
#  190|   {
#  191|       char *r = static_cast<char *>(gmalloc(std::strlen(s) + 1, false));
#  192|->     return std::strcpy(r, s);
#  193|   }
#  194|   

Error: CPPCHECK_WARNING (CWE-562): [#def10]
poppler-25.02.0/goo/gmem.h:200: error[returnDanglingLifetime]: Returning pointer to local variable 'r' that will be invalid when returning.
#  198|       char *r = static_cast<char *>(gmalloc(n + 1, false));
#  199|       r[n] = '\0';
#  200|->     return std::strncpy(r, s, n);
#  201|   }
#  202|   

Error: CPPCHECK_WARNING (CWE-476): [#def11]
poppler-25.02.0/goo/gstrtod.cc:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  103|   
#  104|           c = copy;
#  105|->         memcpy(c, nptr, decimal_point_pos - nptr);
#  106|           c += decimal_point_pos - nptr;
#  107|           memcpy(c, decimal_point, decimal_point_len);

Error: CPPCHECK_WARNING (CWE-476): [#def12]
poppler-25.02.0/goo/gstrtod.cc:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy
#  112|   
#  113|           errno = 0;
#  114|->         val = strtod(copy, &fail_pos);
#  115|           strtod_errno = errno;
#  116|   

Error: CPPCHECK_WARNING (CWE-476): [#def13]
poppler-25.02.0/goo/gstrtod.cc:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy
#  128|   
#  129|           copy = (char *)malloc(end - (char *)nptr + 1);
#  130|->         memcpy(copy, nptr, end - nptr);
#  131|           *(copy + (end - (char *)nptr)) = 0;
#  132|   

Error: CPPCHECK_WARNING (CWE-682): [#def14]
poppler-25.02.0/goo/gstrtod.cc:131: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  129|           copy = (char *)malloc(end - (char *)nptr + 1);
#  130|           memcpy(copy, nptr, end - nptr);
#  131|->         *(copy + (end - (char *)nptr)) = 0;
#  132|   
#  133|           errno = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def15]
poppler-25.02.0/goo/gstrtod.cc:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy
#  132|   
#  133|           errno = 0;
#  134|->         val = strtod(copy, &fail_pos);
#  135|           strtod_errno = errno;
#  136|   

Error: CPPCHECK_WARNING (CWE-562): [#def16]
poppler-25.02.0/poppler/CachedFile.cc:210: error[danglingLifetime]: Non-local variable 'chunks' will use pointer to local variable 'loadChunks'.
#  208|   {
#  209|       cachedFile = cachedFileA;
#  210|->     chunks = chunksA;
#  211|   
#  212|       if (chunks) {

Error: CPPCHECK_WARNING (CWE-562): [#def17]
poppler-25.02.0/poppler/CachedFile.cc:212: error[danglingLifetime]: Non-local variable 'chunks' will use pointer to local variable 'loadChunks'.
#  210|       chunks = chunksA;
#  211|   
#  212|->     if (chunks) {
#  213|           offset = 0;
#  214|           it = (*chunks).begin();

Error: CPPCHECK_WARNING (CWE-457): [#def18]
poppler-25.02.0/poppler/CachedFile.cc:266: warning[uninitvar]: Uninitialized variable: chunk
#  264|       }
#  265|   
#  266|->     if ((chunk == (cachedFile->length / CachedFileChunkSize)) && (offset == (cachedFile->length % CachedFileChunkSize))) {
#  267|           (*cachedFile->chunks)[chunk].state = CachedFile::chunkStateLoaded;
#  268|       }

Error: CPPCHECK_WARNING (CWE-457): [#def19]
poppler-25.02.0/poppler/CairoOutputDev.cc:3436: warning[uninitvar]: Uninitialized variable: pix
# 3434|           }
# 3435|   
# 3436|->         if (unlikely(pix == nullptr)) {
# 3437|               memset(row_data, 0, width * 4);
# 3438|               if (!imageError) {

Error: CPPCHECK_WARNING (CWE-457): [#def20]
poppler-25.02.0/poppler/Decrypt.cc:269: warning[uninitvar]: Uninitialized variable: tmpKey
#  267|                   tmpKey[j] = fileKey[j] ^ i;
#  268|               }
#  269|->             rc4InitKey(tmpKey, keyLength, fState);
#  270|               fx = fy = 0;
#  271|               for (j = 0; j < 32; ++j) {

Error: CPPCHECK_WARNING (CWE-457): [#def21]
poppler-25.02.0/poppler/Decrypt.cc:1779: error[uninitvar]: Uninitialized variable: totalLength
# 1777|       int rounds = 0;
# 1778|   
# 1779|->     while (rounds < 64 || rounds < E[totalLength - 1] + 32) {
# 1780|           sequenceLength = inputPasswordLength + KLength + userKeyLength;
# 1781|           totalLength = 64 * sequenceLength;

Error: CPPCHECK_WARNING (CWE-664): [#def22]
poppler-25.02.0/poppler/Form.cc:1461: error[mismatchingContainers]: Iterators of different containers 'children[i]' and 'children[j]' are used together.
# 1459|           int numChildren = int(children.size());
# 1460|           for (int i = 0; i < numChildren; i++) {
# 1461|->             FormFieldButton *child = dynamic_cast<FormFieldButton *>(children[i].get());
# 1462|               if (child != nullptr) {
# 1463|                   // Fill the siblings of this node childs

Error: COMPILER_WARNING: [#def23]
poppler-25.02.0/poppler/Form.cc:1858:43: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 1858 |         choices = new ChoiceOpt[numChoices];
#      |                                           ^
/usr/include/c++/15/new: scope_hint: In function ‘createFieldFromDict’
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
# 1856|       if (obj1.isArray()) {
# 1857|           numChoices = obj1.arrayGetLength();
# 1858|->         choices = new ChoiceOpt[numChoices];
# 1859|   
# 1860|           for (int i = 0; i < numChoices; i++) {

Error: CPPCHECK_WARNING (CWE-457): [#def24]
poppler-25.02.0/poppler/Function.cc:398: warning[uninitvar]: Uninitialized variable: in
#  396|           cacheIn[i] = in[i] - 1;
#  397|       }
#  398|->     transform(in, cacheOut);
#  399|   
#  400|       ok = true;

Error: CPPCHECK_WARNING (CWE-457): [#def25]
poppler-25.02.0/poppler/Gfx.cc:1483: warning[uninitvar]: Uninitialized variable: &color
# 1481|           color.c[i] = dblToCol(args[i].getNum());
# 1482|       }
# 1483|->     state->setFillColor(&color);
# 1484|       out->updateFillColor(state);
# 1485|   }

Error: CPPCHECK_WARNING (CWE-457): [#def26]
poppler-25.02.0/poppler/Gfx.cc:1500: warning[uninitvar]: Uninitialized variable: &color
# 1498|           color.c[i] = dblToCol(args[i].getNum());
# 1499|       }
# 1500|->     state->setStrokeColor(&color);
# 1501|       out->updateStrokeColor(state);
# 1502|   }

Error: CPPCHECK_WARNING (CWE-457): [#def27]
poppler-25.02.0/poppler/GfxState.cc:2676: warning[uninitvar]: Uninitialized variable: &color2
# 2674|               color2.c[i] = dblToCol(c[i]);
# 2675|           }
# 2676|->         alt->getGray(&color2, gray);
# 2677|       }
# 2678|   }

Error: CPPCHECK_WARNING (CWE-457): [#def28]
poppler-25.02.0/poppler/GfxState.cc:2698: warning[uninitvar]: Uninitialized variable: &color2
# 2696|               color2.c[i] = dblToCol(c[i]);
# 2697|           }
# 2698|->         alt->getRGB(&color2, rgb);
# 2699|       }
# 2700|   }

Error: CPPCHECK_WARNING (CWE-457): [#def29]
poppler-25.02.0/poppler/GfxState.cc:2969: warning[uninitvar]: Uninitialized variable: x
# 2967|           x[i] = colToDbl(color->c[i]);
# 2968|       }
# 2969|->     func->transform(x, c);
# 2970|       for (i = 0; i < alt->getNComps(); ++i) {
# 2971|           color2.c[i] = dblToCol(c[i]);

Error: CPPCHECK_WARNING (CWE-457): [#def30]
poppler-25.02.0/poppler/GfxState.cc:2973: warning[uninitvar]: Uninitialized variable: &color2
# 2971|           color2.c[i] = dblToCol(c[i]);
# 2972|       }
# 2973|->     alt->getGray(&color2, gray);
# 2974|   }
# 2975|   

Error: CPPCHECK_WARNING (CWE-457): [#def31]
poppler-25.02.0/poppler/GfxState.cc:2985: warning[uninitvar]: Uninitialized variable: x
# 2983|           x[i] = colToDbl(color->c[i]);
# 2984|       }
# 2985|->     func->transform(x, c);
# 2986|       for (i = 0; i < alt->getNComps(); ++i) {
# 2987|           color2.c[i] = dblToCol(c[i]);

Error: CPPCHECK_WARNING (CWE-457): [#def32]
poppler-25.02.0/poppler/GfxState.cc:2989: warning[uninitvar]: Uninitialized variable: &color2
# 2987|           color2.c[i] = dblToCol(c[i]);
# 2988|       }
# 2989|->     alt->getRGB(&color2, rgb);
# 2990|   }
# 2991|   

Error: CPPCHECK_WARNING (CWE-457): [#def33]
poppler-25.02.0/poppler/GfxState.cc:3001: warning[uninitvar]: Uninitialized variable: x
# 2999|           x[i] = colToDbl(color->c[i]);
# 3000|       }
# 3001|->     func->transform(x, c);
# 3002|       for (i = 0; i < alt->getNComps(); ++i) {
# 3003|           color2.c[i] = dblToCol(c[i]);

Error: CPPCHECK_WARNING (CWE-457): [#def34]
poppler-25.02.0/poppler/GfxState.cc:3005: warning[uninitvar]: Uninitialized variable: &color2
# 3003|           color2.c[i] = dblToCol(c[i]);
# 3004|       }
# 3005|->     alt->getCMYK(&color2, cmyk);
# 3006|   }
# 3007|   

Error: CPPCHECK_WARNING (CWE-457): [#def35]
poppler-25.02.0/poppler/GfxState.cc:5741: warning[uninitvar]: Uninitialized variable: &color
# 5739|               color.c[i] = lookup2[i][x[0]];
# 5740|           }
# 5741|->         colorSpace2->getGray(&color, gray);
# 5742|       } else {
# 5743|           for (i = 0; i < nComps; ++i) {

Error: CPPCHECK_WARNING (CWE-457): [#def36]
poppler-25.02.0/poppler/GfxState.cc:5759: warning[uninitvar]: Uninitialized variable: &color
# 5757|               color.c[i] = lookup2[i][x[0]];
# 5758|           }
# 5759|->         colorSpace2->getRGB(&color, rgb);
# 5760|       } else {
# 5761|           for (i = 0; i < nComps; ++i) {

Error: CPPCHECK_WARNING (CWE-457): [#def37]
poppler-25.02.0/poppler/GfxState.cc:6080: warning[uninitvar]: Uninitialized variable: &color
# 6078|               color.c[i] = lookup2[i][x[0]];
# 6079|           }
# 6080|->         colorSpace2->getCMYK(&color, cmyk);
# 6081|       } else {
# 6082|           for (i = 0; i < nComps; ++i) {

Error: CPPCHECK_WARNING (CWE-457): [#def38]
poppler-25.02.0/poppler/GfxState.cc:6098: warning[uninitvar]: Uninitialized variable: &color
# 6096|               color.c[i] = lookup2[i][x[0]];
# 6097|           }
# 6098|->         colorSpace2->getDeviceN(&color, deviceN);
# 6099|       } else {
# 6100|           for (i = 0; i < nComps; ++i) {

Error: CPPCHECK_WARNING (CWE-476): [#def39]
poppler-25.02.0/poppler/GfxState.h:1650: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: intent
# 1648|       void setRise(double riseA) { rise = riseA; }
# 1649|       void setRender(int renderA) { render = renderA; }
# 1650|->     void setRenderingIntent(const char *intent) { strncpy(renderingIntent, intent, 31); }
# 1651|   
# 1652|   #ifdef USE_CMS

Error: CPPCHECK_WARNING (CWE-457): [#def40]
poppler-25.02.0/poppler/Outline.cc:189: warning[uninitvar]: Uninitialized variables: nextRef.num, nextRef.gen
#  187|           xref->removeIndirectObject(ref);
#  188|           count++;
#  189|->         ref = nextRef;
#  190|       }
#  191|       return count;

Error: CPPCHECK_WARNING (CWE-457): [#def41]
poppler-25.02.0/poppler/PSOutputDev.cc:1049: warning[uninitvar]: Uninitialized variable: x
# 1047|           x[i] = colToDbl(color.c[i]);
# 1048|       }
# 1049|->     func->transform(x, y);
# 1050|       for (i = 0; i < bufSize; ++i) {
# 1051|           buf[i] = (int)(y[i] * 255 + 0.5);

Error: CPPCHECK_WARNING (CWE-476): [#def42]
poppler-25.02.0/poppler/PSOutputDev.cc:1567: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sanitizedTitle
# 1565|       if (title) {
# 1566|           char *sanitizedTitle = strdup(title);
# 1567|->         for (size_t i = 0; i < strlen(sanitizedTitle); ++i) {
# 1568|               if (sanitizedTitle[i] == '\n' || sanitizedTitle[i] == '\r') {
# 1569|                   sanitizedTitle[i] = ' ';

Error: CPPCHECK_WARNING (CWE-562): [#def43]
poppler-25.02.0/poppler/UnicodeMap.cc:222: error[returnDanglingLifetime]: Returning pointer to local variable 'map' that will be invalid when returning.
#  220|           UnicodeMap *m = map.get();
#  221|           cache.emplace_back(std::move(map));
#  222|->         return m;
#  223|       }
#  224|       return nullptr;

Error: COMPILER_WARNING (CWE-477): [#def44]
poppler-25.02.0/qt5/src/poppler-annotation.cc: scope_hint: In constructor ‘Poppler::Annotation::Annotation(Poppler::AnnotationPrivate&, const QDomNode&)’
poppler-25.02.0/qt5/src/poppler-annotation.cc:1135:54: warning[-Wdeprecated-declarations]: ‘static QDomElement Poppler::AnnotationUtils::findChildElement(const QDomNode&, const QString&)’ is deprecated
# 1135 |     QDomElement e = AnnotationUtils::findChildElement(annNode, QStringLiteral("base"));
#      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
poppler-25.02.0/qt5/src/poppler-annotation.cc:120:13: note: declared here
#  120 | QDomElement AnnotationUtils::findChildElement(const QDomNode &parentNode, const QString &name)
#      |             ^~~~~~~~~~~~~~~
# 1133|   
# 1134|       // get the [base] element of the annotation node
# 1135|->     QDomElement e = AnnotationUtils::findChildElement(annNode, QStringLiteral("base"));
# 1136|       if (e.isNull()) {
# 1137|           return;

Error: COMPILER_WARNING (CWE-477): [#def45]
poppler-25.02.0/qt5/src/poppler-annotation.cc:1275:62: warning[-Wdeprecated-declarations]: ‘static Poppler::Annotation* Poppler::AnnotationUtils::createAnnotation(const QDomElement&)’ is deprecated
# 1275 |         Annotation *reply = AnnotationUtils::createAnnotation(revElement);
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
poppler-25.02.0/qt5/src/poppler-annotation.cc:73:13: note: declared here
#   73 | Annotation *AnnotationUtils::createAnnotation(const QDomElement &annElement)
#      |             ^~~~~~~~~~~~~~~
# 1273|           }
# 1274|   
# 1275|->         Annotation *reply = AnnotationUtils::createAnnotation(revElement);
# 1276|   
# 1277|           if (reply) // if annotation is valid, add as a revision of this annotation

Error: COMPILER_WARNING (CWE-477): [#def46]
poppler-25.02.0/qt5/src/poppler-annotation.cc: scope_hint: In member function ‘void Poppler::Annotation::storeBaseAnnotationProperties(QDomNode&, QDomDocument&) const’
poppler-25.02.0/qt5/src/poppler-annotation.cc:1407:41: warning[-Wdeprecated-declarations]: ‘static void Poppler::AnnotationUtils::storeAnnotation(const Poppler::Annotation*, QDomElement&, QDomDocument&)’ is deprecated
# 1407 |         AnnotationUtils::storeAnnotation(rev, r, document);
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
poppler-25.02.0/qt5/src/poppler-annotation.cc:111:6: note: declared here
#  111 | void AnnotationUtils::storeAnnotation(const Annotation *ann, QDomElement &annElement, QDomDocument &document)
#      |      ^~~~~~~~~~~~~~~
# 1405|           r.setAttribute(QStringLiteral("revType"), (int)rev->revisionType());
# 1406|           // use revision as the annotation element, so fill it up
# 1407|->         AnnotationUtils::storeAnnotation(rev, r, document);
# 1408|           delete rev;
# 1409|       }

Error: COMPILER_WARNING (CWE-477): [#def47]
poppler-25.02.0/qt6/src/poppler-qiodeviceoutstream.cc: scope_hint: In function ‘int Poppler::poppler_vasprintf(char**, const char*, __va_list_tag*)’
poppler-25.02.0/qt6/src/poppler-qiodeviceoutstream.cc:62:22: warning[-Wdeprecated-declarations]: ‘int qvsnprintf(char*, size_t, const char*, __va_list_tag*)’ is deprecated: Use C++11 std::vsnprintf() instead, taking care to ensure that you didn't rely on QString::asprintf() idiosyncrasies that qvsnprintf might, but std::vsnprintf() does not, support.
#   62 |     return qvsnprintf(*buf_ptr, size, format, ap);
#      |            ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qbytearray.h:14: included_from: Included from here.
/usr/include/qt6/QtCore/qstringview.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qchar.h:728: included_from: Included from here.
/usr/include/qt6/QtCore/qstring.h:14: included_from: Included from here.
/usr/include/qt6/QtCore/qobject.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qiodevice.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/QIODevice:1: included_from: Included from here.
poppler-25.02.0/qt6/src/poppler-qiodeviceoutstream.cc:25: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearrayalgorithms.h:150:19: note: declared here
#  150 | Q_CORE_EXPORT int qvsnprintf(char *str, size_t n, const char *fmt, va_list ap)
#      |                   ^~~~~~~~~~
#   60|       *buf_ptr = new char[size];
#   61|   
#   62|->     return qvsnprintf(*buf_ptr, size, format, ap);
#   63|   }
#   64|   

Error: COMPILER_WARNING (CWE-477): [#def48]
/usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here.
/usr/include/qt6/QtTest/QTest:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/check_attachments.cpp:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/check_attachments.cpp: scope_hint: In member function ‘void TestAttachments::checkAttach2()’
poppler-25.02.0/qt6/tests/check_attachments.cpp:79:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   79 |     QCOMPARE(embfile1->createDate(), QDateTime(QDate(2003, 8, 4), QTime(13, 54, 54), Qt::UTC));
#      |                                                                                             ^
/usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here.
/usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here.
/usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   77|       QCOMPARE(embfile1->name(), QLatin1String("Acro7 thoughts"));
#   78|       QCOMPARE(embfile1->description(), QString());
#   79|->     QCOMPARE(embfile1->createDate(), QDateTime(QDate(2003, 8, 4), QTime(13, 54, 54), Qt::UTC));
#   80|       QCOMPARE(embfile1->modDate(), QDateTime(QDate(2003, 8, 4), QTime(14, 15, 27), Qt::UTC));
#   81|       QCOMPARE(embfile1->mimeType(), QLatin1String("text/xml"));

Error: COMPILER_WARNING (CWE-477): [#def49]
poppler-25.02.0/qt6/tests/check_attachments.cpp:80:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   80 |     QCOMPARE(embfile1->modDate(), QDateTime(QDate(2003, 8, 4), QTime(14, 15, 27), Qt::UTC));
#      |                                                                                          ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   78|       QCOMPARE(embfile1->description(), QString());
#   79|       QCOMPARE(embfile1->createDate(), QDateTime(QDate(2003, 8, 4), QTime(13, 54, 54), Qt::UTC));
#   80|->     QCOMPARE(embfile1->modDate(), QDateTime(QDate(2003, 8, 4), QTime(14, 15, 27), Qt::UTC));
#   81|       QCOMPARE(embfile1->mimeType(), QLatin1String("text/xml"));
#   82|   

Error: COMPILER_WARNING (CWE-477): [#def50]
poppler-25.02.0/qt6/tests/check_attachments.cpp:86:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   86 |     QCOMPARE(embfile2->createDate(), QDateTime(QDate(2003, 7, 18), QTime(21, 7, 16), Qt::UTC));
#      |                                                                                             ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   84|       QCOMPARE(embfile2->name(), QLatin1String("acro transitions 1.xls"));
#   85|       QCOMPARE(embfile2->description(), QString());
#   86|->     QCOMPARE(embfile2->createDate(), QDateTime(QDate(2003, 7, 18), QTime(21, 7, 16), Qt::UTC));
#   87|       QCOMPARE(embfile2->modDate(), QDateTime(QDate(2003, 7, 22), QTime(13, 4, 40), Qt::UTC));
#   88|       QCOMPARE(embfile2->mimeType(), QLatin1String("application/excel"));

Error: COMPILER_WARNING (CWE-477): [#def51]
poppler-25.02.0/qt6/tests/check_attachments.cpp:87:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   87 |     QCOMPARE(embfile2->modDate(), QDateTime(QDate(2003, 7, 22), QTime(13, 4, 40), Qt::UTC));
#      |                                                                                          ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   85|       QCOMPARE(embfile2->description(), QString());
#   86|       QCOMPARE(embfile2->createDate(), QDateTime(QDate(2003, 7, 18), QTime(21, 7, 16), Qt::UTC));
#   87|->     QCOMPARE(embfile2->modDate(), QDateTime(QDate(2003, 7, 22), QTime(13, 4, 40), Qt::UTC));
#   88|       QCOMPARE(embfile2->mimeType(), QLatin1String("application/excel"));
#   89|   

Error: COMPILER_WARNING (CWE-477): [#def52]
poppler-25.02.0/qt6/tests/check_attachments.cpp:93:94: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   93 |     QCOMPARE(embfile3->createDate(), QDateTime(QDate(2003, 1, 31), QTime(15, 54, 29), Qt::UTC));
#      |                                                                                              ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   91|       QCOMPARE(embfile3->name(), QLatin1String("apago_pdfe_wide.gif"));
#   92|       QCOMPARE(embfile3->description(), QString());
#   93|->     QCOMPARE(embfile3->createDate(), QDateTime(QDate(2003, 1, 31), QTime(15, 54, 29), Qt::UTC));
#   94|       QCOMPARE(embfile3->modDate(), QDateTime(QDate(2003, 1, 31), QTime(15, 52, 58), Qt::UTC));
#   95|       QCOMPARE(embfile3->mimeType(), QString());

Error: COMPILER_WARNING (CWE-477): [#def53]
poppler-25.02.0/qt6/tests/check_attachments.cpp:94:91: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   94 |     QCOMPARE(embfile3->modDate(), QDateTime(QDate(2003, 1, 31), QTime(15, 52, 58), Qt::UTC));
#      |                                                                                           ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   92|       QCOMPARE(embfile3->description(), QString());
#   93|       QCOMPARE(embfile3->createDate(), QDateTime(QDate(2003, 1, 31), QTime(15, 54, 29), Qt::UTC));
#   94|->     QCOMPARE(embfile3->modDate(), QDateTime(QDate(2003, 1, 31), QTime(15, 52, 58), Qt::UTC));
#   95|       QCOMPARE(embfile3->mimeType(), QString());
#   96|   }

Error: COMPILER_WARNING (CWE-477): [#def54]
poppler-25.02.0/qt6/tests/check_attachments.cpp: scope_hint: In member function ‘void TestAttachments::checkAttach3()’
poppler-25.02.0/qt6/tests/check_attachments.cpp:112:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#  112 |     QCOMPARE(embfile->createDate(), QDateTime(QDate(2004, 3, 29), QTime(19, 37, 16), Qt::UTC));
#      |                                                                                             ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#  110|       QCOMPARE(embfile->name(), QLatin1String("ADEX1.xpdf.pgp"));
#  111|       QCOMPARE(embfile->description(), QString());
#  112|->     QCOMPARE(embfile->createDate(), QDateTime(QDate(2004, 3, 29), QTime(19, 37, 16), Qt::UTC));
#  113|       QCOMPARE(embfile->modDate(), QDateTime(QDate(2004, 3, 29), QTime(19, 37, 16), Qt::UTC));
#  114|       QCOMPARE(embfile->mimeType(), QString());

Error: COMPILER_WARNING (CWE-477): [#def55]
poppler-25.02.0/qt6/tests/check_attachments.cpp:113:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#  113 |     QCOMPARE(embfile->modDate(), QDateTime(QDate(2004, 3, 29), QTime(19, 37, 16), Qt::UTC));
#      |                                                                                          ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#  111|       QCOMPARE(embfile->description(), QString());
#  112|       QCOMPARE(embfile->createDate(), QDateTime(QDate(2004, 3, 29), QTime(19, 37, 16), Qt::UTC));
#  113|->     QCOMPARE(embfile->modDate(), QDateTime(QDate(2004, 3, 29), QTime(19, 37, 16), Qt::UTC));
#  114|       QCOMPARE(embfile->mimeType(), QString());
#  115|   }

Error: COMPILER_WARNING (CWE-477): [#def56]
poppler-25.02.0/qt6/tests/check_attachments.cpp: scope_hint: In member function ‘void TestAttachments::checkAttach4()’
poppler-25.02.0/qt6/tests/check_attachments.cpp:131:93: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#  131 |     QCOMPARE(embfile->createDate(), QDateTime(QDate(2005, 8, 30), QTime(20, 49, 35), Qt::UTC));
#      |                                                                                             ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#  129|       QCOMPARE(embfile->name(), QLatin1String("export-altona.csv"));
#  130|       QCOMPARE(embfile->description(), QLatin1String("Altona Export"));
#  131|->     QCOMPARE(embfile->createDate(), QDateTime(QDate(2005, 8, 30), QTime(20, 49, 35), Qt::UTC));
#  132|       QCOMPARE(embfile->modDate(), QDateTime(QDate(2005, 8, 30), QTime(20, 49, 52), Qt::UTC));
#  133|       QCOMPARE(embfile->mimeType(), QLatin1String("application/vnd.ms-excel"));

Error: COMPILER_WARNING (CWE-477): [#def57]
poppler-25.02.0/qt6/tests/check_attachments.cpp:132:90: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#  132 |     QCOMPARE(embfile->modDate(), QDateTime(QDate(2005, 8, 30), QTime(20, 49, 52), Qt::UTC));
#      |                                                                                          ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#  130|       QCOMPARE(embfile->description(), QLatin1String("Altona Export"));
#  131|       QCOMPARE(embfile->createDate(), QDateTime(QDate(2005, 8, 30), QTime(20, 49, 35), Qt::UTC));
#  132|->     QCOMPARE(embfile->modDate(), QDateTime(QDate(2005, 8, 30), QTime(20, 49, 52), Qt::UTC));
#  133|       QCOMPARE(embfile->mimeType(), QLatin1String("application/vnd.ms-excel"));
#  134|   }

Error: COMPILER_WARNING (CWE-477): [#def58]
/usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here.
/usr/include/qt6/QtTest/QTest:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/check_dateConversion.cpp:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/check_dateConversion.cpp: scope_hint: In member function ‘void TestDateConv::checkDates()’
poppler-25.02.0/qt6/tests/check_dateConversion.cpp:72:83: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#   72 |     QCOMPARE(Poppler::convertDate(input.constData()), QDateTime(day, time, Qt::UTC));
#      |                                                                                   ^
/usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here.
/usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here.
/usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#   70|       QFETCH(QTime, time);
#   71|   
#   72|->     QCOMPARE(Poppler::convertDate(input.constData()), QDateTime(day, time, Qt::UTC));
#   73|   }
#   74|   

Error: COMPILER_WARNING (CWE-477): [#def59]
/usr/include/qt6/QtTest/qtest.h:13: included_from: Included from here.
/usr/include/qt6/QtTest/QTest:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/check_metadata.cpp:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/check_metadata.cpp: scope_hint: In member function ‘void TestMetaData::checkDate()’
poppler-25.02.0/qt6/tests/check_metadata.cpp:139:107: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#  139 |     QCOMPARE(doc->date(QStringLiteral("ModDate")), QDateTime(QDate(2005, 12, 5), QTime(9, 44, 46), Qt::UTC));
#      |                                                                                                           ^
/usr/include/qt6/QtCore/qcborvalue.h:10: included_from: Included from here.
/usr/include/qt6/QtCore/qcborarray.h:7: included_from: Included from here.
/usr/include/qt6/QtTest/qtesttostring.h:17: included_from: Included from here.
/usr/include/qt6/QtTest/qtestcase.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#  137|       std::unique_ptr<Poppler::Document> doc = Poppler::Document::load(TESTDATADIR "/unittestcases/truetype.pdf");
#  138|       QVERIFY(doc);
#  139|->     QCOMPARE(doc->date(QStringLiteral("ModDate")), QDateTime(QDate(2005, 12, 5), QTime(9, 44, 46), Qt::UTC));
#  140|       QCOMPARE(doc->date(QStringLiteral("CreationDate")), QDateTime(QDate(2005, 8, 13), QTime(1, 12, 11), Qt::UTC));
#  141|   }

Error: COMPILER_WARNING (CWE-477): [#def60]
poppler-25.02.0/qt6/tests/check_metadata.cpp:140:112: warning[-Wdeprecated-declarations]: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead
#  140 |     QCOMPARE(doc->date(QStringLiteral("CreationDate")), QDateTime(QDate(2005, 8, 13), QTime(1, 12, 11), Qt::UTC));
#      |                                                                                                                ^
/usr/include/qt6/QtCore/qdatetime.h:362:5: note: declared here
#  362 |     QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0);
#      |     ^~~~~~~~~
#  138|       QVERIFY(doc);
#  139|       QCOMPARE(doc->date(QStringLiteral("ModDate")), QDateTime(QDate(2005, 12, 5), QTime(9, 44, 46), Qt::UTC));
#  140|->     QCOMPARE(doc->date(QStringLiteral("CreationDate")), QDateTime(QDate(2005, 8, 13), QTime(1, 12, 11), Qt::UTC));
#  141|   }
#  142|   

Error: COMPILER_WARNING (CWE-477): [#def61]
poppler-25.02.0/qt6/tests/poppler-forms.cpp: scope_hint: In function ‘int main(int, char**)’
poppler-25.02.0/qt6/tests/poppler-forms.cpp:267:76: warning[-Wdeprecated-declarations]: ‘static QDateTime QDateTime::fromSecsSinceEpoch(qint64, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead of time-spec, offset
#  267 |                     const QDateTime sviTime = QDateTime::fromSecsSinceEpoch(svi.signingTime(), Qt::UTC);
#      |                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/QDateTime:1: included_from: Included from here.
poppler-25.02.0/qt6/tests/poppler-forms.cpp:2: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:491:22: note: declared here
#  491 |     static QDateTime fromSecsSinceEpoch(qint64 secs, Qt::TimeSpec spec, int offsetFromUtc = 0);
#      |                      ^~~~~~~~~~~~~~~~~~
#  265|                                     << "(null)" << std::endl;
#  266|                       }
#  267|->                     const QDateTime sviTime = QDateTime::fromSecsSinceEpoch(svi.signingTime(), Qt::UTC);
#  268|                       std::cout << "\t\t\tSigningTime: " << sviTime.toString() << std::endl;
#  269|                   } break;

Error: COMPILER_WARNING (CWE-457): [#def62]
poppler-25.02.0/splash/SplashBitmap.cc: scope_hint: In member function ‘SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool, std::vector<std::unique_ptr<GfxSeparationColorSpace, std::default_delete<GfxSeparationColorSpace> >, std::allocator<std::unique_ptr<GfxSeparationColorSpace, std::default_delete<GfxSeparationColorSpace> > > > const*)’
poppler-25.02.0/splash/SplashBitmap.cc:107:9: warning[-Wmaybe-uninitialized]: ‘*this_39(D).rowSize’ may be used uninitialized
#  107 |     if (rowSize > 0) {
#      |         ^~~~~~~
#  105|           break;
#  106|       }
#  107|->     if (rowSize > 0) {
#  108|           rowSize += rowPad - 1;
#  109|           rowSize -= rowSize % rowPad;

Error: CPPCHECK_WARNING (CWE-476): [#def63]
poppler-25.02.0/utils/pdfseparate.cc:79: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: auxDestFileName
#   77|       bool foundmatch = false;
#   78|       char *auxDestFileName = strdup(destFileName);
#   79|->     char *p = strstr(auxDestFileName, "%d");
#   80|       if (p != nullptr) {
#   81|           foundmatch = true;

Error: CPPCHECK_WARNING (CWE-415): [#def64]
poppler-25.02.0/utils/pdftotext.cc:350: error[doubleFree]: Resource handle 'f' freed twice.
#  348|           }
#  349|           if (f != stdout) {
#  350|->             fclose(f);
#  351|           }
#  352|       } else {

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-114.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepoppler-25.02.0-1.fc43
store-results-to/tmp/tmpmqo084ab/poppler-25.02.0-1.fc43.tar.xz
time-created2025-04-25 15:10:01
time-finished2025-04-25 15:17:22
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpmqo084ab/poppler-25.02.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmqo084ab/poppler-25.02.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9