Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/qpdf-10.0.4/libtests/dct_uncompress.cc Examining data/qpdf-10.0.4/libtests/lzw.cc Examining data/qpdf-10.0.4/libtests/hex.cc Examining data/qpdf-10.0.4/libtests/buffer.cc Examining data/qpdf-10.0.4/libtests/dct_compress.cc Examining data/qpdf-10.0.4/libtests/bits.cc Examining data/qpdf-10.0.4/libtests/runlength.cc Examining data/qpdf-10.0.4/libtests/cxx11.cc Examining data/qpdf-10.0.4/libtests/qutil.cc Examining data/qpdf-10.0.4/libtests/sparse_array.cc Examining data/qpdf-10.0.4/libtests/main_from_wmain.cc Examining data/qpdf-10.0.4/libtests/pointer_holder.cc Examining data/qpdf-10.0.4/libtests/sha2.cc Examining data/qpdf-10.0.4/libtests/numrange.cc Examining data/qpdf-10.0.4/libtests/json.cc Examining data/qpdf-10.0.4/libtests/concatenate.cc Examining data/qpdf-10.0.4/libtests/random.cc Examining data/qpdf-10.0.4/libtests/qintc.cc Examining data/qpdf-10.0.4/libtests/matrix.cc Examining data/qpdf-10.0.4/libtests/md5.cc Examining data/qpdf-10.0.4/libtests/flate.cc Examining data/qpdf-10.0.4/libtests/closed_file_input_source.cc Examining data/qpdf-10.0.4/libtests/ascii85.cc Examining data/qpdf-10.0.4/libtests/input_source.cc Examining data/qpdf-10.0.4/libtests/rc4.cc Examining data/qpdf-10.0.4/libtests/predictors.cc Examining data/qpdf-10.0.4/libtests/aes.cc Examining data/qpdf-10.0.4/include/qpdf/qpdf-c.h Examining data/qpdf-10.0.4/include/qpdf/Constants.h Examining data/qpdf-10.0.4/include/qpdf/DLL.h Examining data/qpdf-10.0.4/include/qpdf/Types.h Examining data/qpdf-10.0.4/examples/pdf-set-form-values.cc Examining data/qpdf-10.0.4/examples/pdf-double-page-size.cc Examining data/qpdf-10.0.4/examples/pdf-split-pages.cc Examining data/qpdf-10.0.4/examples/pdf-bookmarks.cc Examining data/qpdf-10.0.4/examples/pdf-npages.cc Examining data/qpdf-10.0.4/examples/pdf-invert-images.cc Examining data/qpdf-10.0.4/examples/pdf-parse-content.cc Examining data/qpdf-10.0.4/examples/pdf-linearize.c Examining data/qpdf-10.0.4/examples/pdf-create.cc Examining data/qpdf-10.0.4/examples/pdf-count-strings.cc Examining data/qpdf-10.0.4/examples/pdf-overlay-page.cc Examining data/qpdf-10.0.4/examples/pdf-filter-tokens.cc Examining data/qpdf-10.0.4/examples/pdf-mod-info.cc Examining data/qpdf-10.0.4/qpdf/qpdf-ctest.c Examining data/qpdf-10.0.4/qpdf/test_driver.cc Examining data/qpdf-10.0.4/qpdf/fix-qdf.cc Examining data/qpdf-10.0.4/qpdf/pdf_from_scratch.cc Examining data/qpdf-10.0.4/qpdf/test_shell_glob.cc Examining data/qpdf-10.0.4/qpdf/test_tokenizer.cc Examining data/qpdf-10.0.4/qpdf/test_renumber.cc Examining data/qpdf-10.0.4/qpdf/test_unicode_filenames.cc Examining data/qpdf-10.0.4/qpdf/qpdf.cc Examining data/qpdf-10.0.4/qpdf/test_large_file.cc Examining data/qpdf-10.0.4/qpdf/test_parsedoffset.cc Examining data/qpdf-10.0.4/qpdf/test_pdf_unicode.cc Examining data/qpdf-10.0.4/qpdf/test_xref.cc Examining data/qpdf-10.0.4/qpdf/test_pdf_doc_encoding.cc Examining data/qpdf-10.0.4/fuzz/pngpredictor_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/standalone_fuzz_target_runner.cc Examining data/qpdf-10.0.4/fuzz/hex_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/ascii85_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/tiffpredictor_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/qpdf_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/runlength_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/flate_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/lzw_fuzzer.cc Examining data/qpdf-10.0.4/fuzz/dct_fuzzer.cc Examining data/qpdf-10.0.4/libqpdf/sph/md_helper.c Examining data/qpdf-10.0.4/libqpdf/sph/sph_types.h Examining data/qpdf-10.0.4/libqpdf/sph/sph_sha2.h Examining data/qpdf-10.0.4/libqpdf/QPDFPageDocumentHelper.cc Examining data/qpdf-10.0.4/libqpdf/Pl_LZWDecoder.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Null.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_String.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Integer.cc Examining data/qpdf-10.0.4/libqpdf/QPDFObject.cc Examining data/qpdf-10.0.4/libqpdf/QPDFObjGen.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_optimization.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Real.cc Examining data/qpdf-10.0.4/libqpdf/Pl_Concatenate.cc Examining data/qpdf-10.0.4/libqpdf/QPDF.cc Examining data/qpdf-10.0.4/libqpdf/QPDFWriter.cc Examining data/qpdf-10.0.4/libqpdf/BufferInputSource.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Stream.cc Examining data/qpdf-10.0.4/libqpdf/QPDFTokenizer.cc Examining data/qpdf-10.0.4/libqpdf/OffsetInputSource.cc Examining data/qpdf-10.0.4/libqpdf/Pl_QPDFTokenizer.cc Examining data/qpdf-10.0.4/libqpdf/ClosedFileInputSource.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc Examining data/qpdf-10.0.4/libqpdf/Pl_AES_PDF.cc Examining data/qpdf-10.0.4/libqpdf/QPDFAnnotationObjectHelper.cc Examining data/qpdf-10.0.4/libqpdf/Pl_RunLength.cc Examining data/qpdf-10.0.4/libqpdf/sha2.c Examining data/qpdf-10.0.4/libqpdf/MD5.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Dictionary.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Operator.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Reserved.cc Examining data/qpdf-10.0.4/libqpdf/rijndael.cc Examining data/qpdf-10.0.4/libqpdf/QPDFOutlineDocumentHelper.cc Examining data/qpdf-10.0.4/libqpdf/Pl_Flate.cc Examining data/qpdf-10.0.4/libqpdf/MD5_native.cc Examining data/qpdf-10.0.4/libqpdf/InputSource.cc Examining data/qpdf-10.0.4/libqpdf/qpdf-c.cc Examining data/qpdf-10.0.4/libqpdf/QPDFCrypto_native.cc Examining data/qpdf-10.0.4/libqpdf/FileInputSource.cc Examining data/qpdf-10.0.4/libqpdf/QTC.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Array.cc Examining data/qpdf-10.0.4/libqpdf/SecureRandomDataProvider.cc Examining data/qpdf-10.0.4/libqpdf/QPDFPageLabelDocumentHelper.cc Examining data/qpdf-10.0.4/libqpdf/Pl_ASCIIHexDecoder.cc Examining data/qpdf-10.0.4/libqpdf/QPDFAcroFormDocumentHelper.cc Examining data/qpdf-10.0.4/libqpdf/QPDFCrypto_openssl.cc Examining data/qpdf-10.0.4/libqpdf/QPDFFormFieldObjectHelper.cc Examining data/qpdf-10.0.4/libqpdf/SHA2_native.cc Examining data/qpdf-10.0.4/libqpdf/Pl_ASCII85Decoder.cc Examining data/qpdf-10.0.4/libqpdf/RC4_native.cc Examining data/qpdf-10.0.4/libqpdf/Pl_MD5.cc Examining data/qpdf-10.0.4/libqpdf/BitStream.cc Examining data/qpdf-10.0.4/libqpdf/sha2big.c Examining data/qpdf-10.0.4/libqpdf/QPDFPageObjectHelper.cc Examining data/qpdf-10.0.4/libqpdf/QUtil.cc Examining data/qpdf-10.0.4/libqpdf/Buffer.cc Examining data/qpdf-10.0.4/libqpdf/AES_PDF_native.cc Examining data/qpdf-10.0.4/libqpdf/Pl_Buffer.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Name.cc Examining data/qpdf-10.0.4/libqpdf/QPDFExc.cc Examining data/qpdf-10.0.4/libqpdf/Pipeline.cc Examining data/qpdf-10.0.4/libqpdf/Pl_Discard.cc Examining data/qpdf-10.0.4/libqpdf/QPDFOutlineObjectHelper.cc Examining data/qpdf-10.0.4/libqpdf/InsecureRandomDataProvider.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_linearization.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_InlineImage.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_pages.cc Examining data/qpdf-10.0.4/libqpdf/CryptoRandomDataProvider.cc Examining data/qpdf-10.0.4/libqpdf/SparseOHArray.cc Examining data/qpdf-10.0.4/libqpdf/QPDFNameTreeObjectHelper.cc Examining data/qpdf-10.0.4/libqpdf/Pl_StdioFile.cc Examining data/qpdf-10.0.4/libqpdf/qpdf/rijndael.h Examining data/qpdf-10.0.4/libqpdf/QPDFCrypto_gnutls.cc Examining data/qpdf-10.0.4/libqpdf/Pl_RC4.cc Examining data/qpdf-10.0.4/libqpdf/ContentNormalizer.cc Examining data/qpdf-10.0.4/libqpdf/QPDF_Bool.cc Examining data/qpdf-10.0.4/libqpdf/Pl_PNGFilter.cc Examining data/qpdf-10.0.4/libqpdf/Pl_TIFFPredictor.cc Examining data/qpdf-10.0.4/libqpdf/QPDFMatrix.cc Examining data/qpdf-10.0.4/libqpdf/BitWriter.cc Examining data/qpdf-10.0.4/libqpdf/QPDFCryptoProvider.cc Examining data/qpdf-10.0.4/libqpdf/QPDFObjectHandle.cc Examining data/qpdf-10.0.4/libqpdf/RC4.cc Examining data/qpdf-10.0.4/libqpdf/Pl_SHA2.cc Examining data/qpdf-10.0.4/libqpdf/QPDFSystemError.cc Examining data/qpdf-10.0.4/libqpdf/Pl_DCT.cc Examining data/qpdf-10.0.4/libqpdf/JSON.cc Examining data/qpdf-10.0.4/libqpdf/QPDFXRefEntry.cc Examining data/qpdf-10.0.4/libqpdf/Pl_Count.cc Examining data/qpdf-10.0.4/libqpdf/QPDFNumberTreeObjectHelper.cc Examining data/qpdf-10.0.4/zlib-flate/zlib-flate.cc FINAL RESULTS: data/qpdf-10.0.4/qpdf/qpdf-ctest.c:48:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(POS_FMT, qpdf_get_error_file_position(qpdf, e)); data/qpdf-10.0.4/qpdf/qpdf-ctest.c:58:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(POS_FMT, qpdf_get_error_file_position(qpdf, e)); data/qpdf-10.0.4/libqpdf/InsecureRandomDataProvider.cc:21:53: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. data[i] = static_cast<unsigned char>((this->random() & 0xff0) >> 4); data/qpdf-10.0.4/libqpdf/InsecureRandomDataProvider.cc:26:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. InsecureRandomDataProvider::random() data/qpdf-10.0.4/libqpdf/InsecureRandomDataProvider.cc:36:11: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ::srandom(seed); data/qpdf-10.0.4/libqpdf/InsecureRandomDataProvider.cc:38:9: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/qpdf-10.0.4/libqpdf/InsecureRandomDataProvider.cc:44:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return ::random(); data/qpdf-10.0.4/libqpdf/QUtil.cc:756:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char* p = getenv(var.c_str()); data/qpdf-10.0.4/libqpdf/QUtil.cc:951:8: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. QUtil::random() data/qpdf-10.0.4/libtests/random.cc:28:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. long r1 = QUtil::random(); data/qpdf-10.0.4/libtests/random.cc:29:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. long r2 = QUtil::random(); data/qpdf-10.0.4/libtests/random.cc:57:17: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. r1 = QUtil::random(); data/qpdf-10.0.4/libtests/random.cc:58:17: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. r2 = QUtil::random(); data/qpdf-10.0.4/libqpdf/AES_PDF_native.cc:28:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this->key.get(), key, key_bytes); data/qpdf-10.0.4/libqpdf/AES_PDF_native.cc:62:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cbc_block, out_data, data/qpdf-10.0.4/libqpdf/AES_PDF_native.cc:76:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cbc_block, in_data, data/qpdf-10.0.4/libqpdf/Buffer.cc:63:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->m->buf, rhs.m->buf, this->m->size); data/qpdf-10.0.4/libqpdf/BufferInputSource.cc:37:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bp, contents.c_str(), contents.length()); data/qpdf-10.0.4/libqpdf/BufferInputSource.cc:159:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, this->m->buf->getBuffer() + this->m->cur_offset, len); data/qpdf-10.0.4/libqpdf/FileInputSource.cc:53:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10240]; data/qpdf-10.0.4/libqpdf/InputSource.cc:72:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1025]; // size known to input_source.cc in libtests data/qpdf-10.0.4/libqpdf/MD5.cc:55:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/qpdf-10.0.4/libqpdf/MD5_native.cc:57:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char PADDING[64] = { data/qpdf-10.0.4/libqpdf/MD5_native.cc:137:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buffer[index], input, partLen); data/qpdf-10.0.4/libqpdf/MD5_native.cc:149:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&buffer[index], &input[i], inputLen-i); data/qpdf-10.0.4/libqpdf/MD5_native.cc:161:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bits[8]; data/qpdf-10.0.4/libqpdf/MD5_native.cc:189:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, digest_val, sizeof(digest_val)); data/qpdf-10.0.4/libqpdf/MD5_native.cc:193:56: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void MD5_native::transform(uint32_t state[4], unsigned char block[64]) data/qpdf-10.0.4/libqpdf/Pl_AES_PDF.cc:30:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this->key.get(), key, key_bytes); data/qpdf-10.0.4/libqpdf/Pl_AES_PDF.cc:62:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->specified_iv, iv, bytes); data/qpdf-10.0.4/libqpdf/Pl_AES_PDF.cc:93:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this->inbuf + this->offset, p, bytes); data/qpdf-10.0.4/libqpdf/Pl_AES_PDF.cc:152:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this->cbc_block, this->specified_iv, this->buf_size); data/qpdf-10.0.4/libqpdf/Pl_AES_PDF.cc:198:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cbc_block, this->inbuf, this->buf_size); data/qpdf-10.0.4/libqpdf/Pl_ASCII85Decoder.cc:71:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char zeroes[4]; data/qpdf-10.0.4/libqpdf/Pl_ASCII85Decoder.cc:112:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char outbuf[4]; data/qpdf-10.0.4/libqpdf/Pl_ASCIIHexDecoder.cc:60:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[2]; data/qpdf-10.0.4/libqpdf/Pl_Buffer.cc:40:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b->getBuffer(), this->m->data->getBuffer(), this->m->total_size); data/qpdf-10.0.4/libqpdf/Pl_Buffer.cc:45:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->m->data->getBuffer() + this->m->total_size, buf, len); data/qpdf-10.0.4/libqpdf/Pl_Buffer.cc:78:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, this->m->data->getBuffer(), this->m->total_size); data/qpdf-10.0.4/libqpdf/Pl_DCT.cc:29:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[JMSG_LENGTH_MAX]; data/qpdf-10.0.4/libqpdf/Pl_Flate.cc:213:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[1]; data/qpdf-10.0.4/libqpdf/Pl_LZWDecoder.cc:130:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp[1]; data/qpdf-10.0.4/libqpdf/Pl_LZWDecoder.cc:159:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_data, last_data, last_size); data/qpdf-10.0.4/libqpdf/Pl_PNGFilter.cc:75:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cur_row + this->pos, data + offset, left); data/qpdf-10.0.4/libqpdf/Pl_PNGFilter.cc:91:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cur_row + this->pos, data + offset, len); data/qpdf-10.0.4/libqpdf/Pl_TIFFPredictor.cc:57:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cur_row.getPointer() + this->pos, data + offset, left); data/qpdf-10.0.4/libqpdf/Pl_TIFFPredictor.cc:70:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(this->cur_row.getPointer() + this->pos, data + offset, len); data/qpdf-10.0.4/libqpdf/QPDF.cc:626:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[7]; data/qpdf-10.0.4/libqpdf/QPDF.cc:891:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char linebuf[51]; data/qpdf-10.0.4/libqpdf/QPDF.cc:2848:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10240]; data/qpdf-10.0.4/libqpdf/QPDFCrypto_gnutls.cc:77:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d, this->digest, sizeof(MD5_Digest)); data/qpdf-10.0.4/libqpdf/QPDFCrypto_gnutls.cc:269:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char zeroes[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; data/qpdf-10.0.4/libqpdf/QPDFCrypto_openssl.cc:26:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256] = ""; data/qpdf-10.0.4/libqpdf/QPDFCrypto_openssl.cc:121:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d, md_out, sizeof(QPDFCryptoImpl::MD5_Digest)); data/qpdf-10.0.4/libqpdf/QPDFObjectHandle.cc:1273:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bp, data.c_str(), data.length()); data/qpdf-10.0.4/libqpdf/QPDFSystemError.cc:26:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[94]; data/qpdf-10.0.4/libqpdf/QPDFTokenizer.cc:174:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char num[3]; data/qpdf-10.0.4/libqpdf/QPDFTokenizer.cc:563:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char num[3]; data/qpdf-10.0.4/libqpdf/QPDFWriter.cc:994:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[sizeof(unsigned long long)]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:131:58: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. pad_or_truncate_password_V4(std::string const& password, char k1[key_bytes]) data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:136:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k1, password.c_str(), password_bytes); data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:137:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(k1 + password_bytes, padding_string, pad_bytes); data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:174:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char k1[key_bytes]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:427:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pbytes[4]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:438:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:454:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key[OU_key_bytes_V4]) data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:473:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(key, digest, OU_key_bytes_V4); data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:483:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char O_key[OU_key_bytes_V4]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:486:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char upass[key_bytes]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:504:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char udata[key_bytes]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:532:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char result[key_bytes]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:533:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, digest, sizeof(MD5::Digest)); data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:600:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key[OU_key_bytes_V4]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:602:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char O_data[key_bytes]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:603:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(O_data, QUtil::unsigned_char_pointer(data.getO()), key_bytes); data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:665:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char k[16]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:684:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char k[16]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:698:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char k[16]) data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:720:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char k[16]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:764:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char k[16]; data/qpdf-10.0.4/libqpdf/QPDF_encryption.cc:1391:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char k[key_bytes]; data/qpdf-10.0.4/libqpdf/QUtil.cc:481:56: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen_wrapper(std::string("open ") + filename, fopen(filename, mode)); data/qpdf-10.0.4/libqpdf/QUtil.cc:621:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, str.c_str(), str.length()); data/qpdf-10.0.4/libqpdf/QUtil.cc:821:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[7]; data/qpdf-10.0.4/libqpdf/QUtil.cc:864:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char out[2]; data/qpdf-10.0.4/libqpdf/QUtil.cc:871:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char out[4]; data/qpdf-10.0.4/libqpdf/qpdf/rijndael.h:18:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char plaintext[16], unsigned char ciphertext[16]); data/qpdf-10.0.4/libqpdf/qpdf/rijndael.h:18:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char plaintext[16], unsigned char ciphertext[16]); data/qpdf-10.0.4/libqpdf/qpdf/rijndael.h:20:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char ciphertext[16], unsigned char plaintext[16]); data/qpdf-10.0.4/libqpdf/qpdf/rijndael.h:20:48: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const unsigned char ciphertext[16], unsigned char plaintext[16]); data/qpdf-10.0.4/libqpdf/sha2.c:609:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. sha2_round(const unsigned char *data, sph_u32 r[8]) data/qpdf-10.0.4/libqpdf/sha2.c:623:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sc->val, H224, sizeof H224); data/qpdf-10.0.4/libqpdf/sha2.c:638:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sc->val, H256, sizeof H256); data/qpdf-10.0.4/libqpdf/sha2big.c:172:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. sha3_round(const unsigned char *data, sph_u64 r[8]) data/qpdf-10.0.4/libqpdf/sha2big.c:186:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sc->val, H384, sizeof H384); data/qpdf-10.0.4/libqpdf/sha2big.c:197:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sc->val, H512, sizeof H512); data/qpdf-10.0.4/libqpdf/sph/md_helper.c:149:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sc->buf + current, data, clen); data/qpdf-10.0.4/libqpdf/sph/md_helper.c:211:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sc->buf, data, len); data/qpdf-10.0.4/libqpdf/sph/sph_sha2.h:72:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[64]; /* first field, for alignment */ data/qpdf-10.0.4/libqpdf/sph/sph_sha2.h:236:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[128]; /* first field, for alignment */ data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1340:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1341:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)val; data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1347:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((unsigned)(((const unsigned char *)src)[0]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1348:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (unsigned)(((const unsigned char *)src)[1]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1354:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)val; data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1355:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1361:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (unsigned)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1362:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((unsigned)(((const unsigned char *)src)[1]) << 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1387:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1388:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1389:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1390:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1394:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1395:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1396:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1397:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1416:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1417:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1418:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1419:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1447:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((sph_u32)(((const unsigned char *)src)[0]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1448:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[1]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1449:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[2]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1450:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (sph_u32)(((const unsigned char *)src)[3]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1454:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((sph_u32)(((const unsigned char *)src)[0]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1455:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[1]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1456:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[2]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1457:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (sph_u32)(((const unsigned char *)src)[3]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1476:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((sph_u32)(((const unsigned char *)src)[0]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1477:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[1]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1478:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[2]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1479:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (sph_u32)(((const unsigned char *)src)[3]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1505:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1506:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1507:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1508:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1512:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1513:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1514:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1515:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1534:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1535:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1536:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1537:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1598:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (sph_u32)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1599:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[1]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1600:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[2]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1601:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[3]) << 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1605:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (sph_u32)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1606:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[1]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1607:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[2]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1608:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[3]) << 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1643:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (sph_u32)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1644:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[1]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1645:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[2]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1646:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u32)(((const unsigned char *)src)[3]) << 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1674:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (val >> 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1675:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (val >> 48); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1676:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (val >> 40); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1677:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (val >> 32); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1678:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[4] = (val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1679:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[5] = (val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1680:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[6] = (val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1681:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[7] = val; data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1685:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val >> 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1686:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 48); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1687:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 40); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1688:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 32); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1689:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[4] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1690:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[5] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1691:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[6] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1692:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[7] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1711:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val >> 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1712:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 48); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1713:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 40); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1714:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 32); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1715:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[4] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1716:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[5] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1717:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[6] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1718:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[7] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1746:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((sph_u64)(((const unsigned char *)src)[0]) << 56) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1747:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[1]) << 48) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1748:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[2]) << 40) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1749:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[3]) << 32) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1750:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[4]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1751:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[5]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1752:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[6]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1753:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (sph_u64)(((const unsigned char *)src)[7]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1757:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((sph_u64)(((const unsigned char *)src)[0]) << 56) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1758:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[1]) << 48) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1759:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[2]) << 40) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1760:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[3]) << 32) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1761:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[4]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1762:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[5]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1763:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[6]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1764:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (sph_u64)(((const unsigned char *)src)[7]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1783:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return ((sph_u64)(((const unsigned char *)src)[0]) << 56) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1784:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[1]) << 48) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1785:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[2]) << 40) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1786:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[3]) << 32) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1787:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[4]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1788:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[5]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1789:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[6]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1790:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | (sph_u64)(((const unsigned char *)src)[7]); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1816:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = val; data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1817:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1818:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1819:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1820:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[4] = (val >> 32); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1821:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[5] = (val >> 40); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1822:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[6] = (val >> 48); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1823:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[7] = (val >> 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1827:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1828:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1829:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1830:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1831:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[4] = (unsigned char)(val >> 32); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1832:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[5] = (unsigned char)(val >> 40); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1833:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[6] = (unsigned char)(val >> 48); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1834:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[7] = (unsigned char)(val >> 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1853:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[0] = (unsigned char)(val); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1854:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[1] = (unsigned char)(val >> 8); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1855:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[2] = (unsigned char)(val >> 16); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1856:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[3] = (unsigned char)(val >> 24); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1857:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[4] = (unsigned char)(val >> 32); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1858:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[5] = (unsigned char)(val >> 40); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1859:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[6] = (unsigned char)(val >> 48); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1860:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((unsigned char *)dst)[7] = (unsigned char)(val >> 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1910:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (sph_u64)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1911:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[1]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1912:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[2]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1913:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[3]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1914:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[4]) << 32) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1915:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[5]) << 40) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1916:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[6]) << 48) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1917:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[7]) << 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1921:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (sph_u64)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1922:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[1]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1923:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[2]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1924:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[3]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1925:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[4]) << 32) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1926:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[5]) << 40) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1927:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[6]) << 48) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1928:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[7]) << 56); data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1966:36: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. return (sph_u64)(((const unsigned char *)src)[0]) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1967:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[1]) << 8) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1968:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[2]) << 16) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1969:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[3]) << 24) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1970:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[4]) << 32) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1971:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[5]) << 40) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1972:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[6]) << 48) data/qpdf-10.0.4/libqpdf/sph/sph_types.h:1973:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. | ((sph_u64)(((const unsigned char *)src)[7]) << 56); data/qpdf-10.0.4/libtests/aes.cc:99:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[3]; data/qpdf-10.0.4/libtests/aes.cc:130:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[83]; data/qpdf-10.0.4/libtests/ascii85.cc:14:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[10000]; data/qpdf-10.0.4/libtests/buffer.cc:79:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char lbuf[10]; data/qpdf-10.0.4/libtests/closed_file_input_source.cc:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b[1]; data/qpdf-10.0.4/libtests/dct_compress.cc:73:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[100]; data/qpdf-10.0.4/libtests/dct_uncompress.cc:25:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[100]; data/qpdf-10.0.4/libtests/flate.cc:39:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[1024]; data/qpdf-10.0.4/libtests/hex.cc:14:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[10000]; data/qpdf-10.0.4/libtests/input_source.cc:64:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + 1022, "potato", 6); data/qpdf-10.0.4/libtests/input_source.cc:67:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + 2037, "potato potato salad ", 20); data/qpdf-10.0.4/libtests/input_source.cc:87:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + b1->getSize() - 12, "potato salad", 12); data/qpdf-10.0.4/libtests/input_source.cc:100:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b + b1->getSize() - 6, "potato", 6); data/qpdf-10.0.4/libtests/lzw.cc:35:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[10000]; data/qpdf-10.0.4/libtests/md5.cc:59:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[50]; data/qpdf-10.0.4/libtests/predictors.cc:41:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[1024]; data/qpdf-10.0.4/libtests/random.cc:63:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[4]; data/qpdf-10.0.4/libtests/rc4.cc:19:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data.get(), "potato", 6); data/qpdf-10.0.4/libtests/rc4.cc:50:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[3]; data/qpdf-10.0.4/libtests/rc4.cc:66:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[100]; data/qpdf-10.0.4/libtests/runlength.cc:26:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[100]; data/qpdf-10.0.4/libtests/sha2.cc:29:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char million_a[1000001]; data/qpdf-10.0.4/qpdf/qpdf-ctest.c:20:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[94]; data/qpdf-10.0.4/qpdf/qpdf-ctest.c:27:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, mode); data/qpdf-10.0.4/qpdf/qpdf-ctest.c:532:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). n = atoi(argv[1]); data/qpdf-10.0.4/qpdf/test_driver.cc:651:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bp, "data for new stream\n", 20); // no null! data/qpdf-10.0.4/qpdf/test_unicode_filenames.cc:18:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10240]; data/qpdf-10.0.4/qpdf/test_unicode_filenames.cc:65:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* in = fopen("minimal.pdf", "rb"); data/qpdf-10.0.4/qpdf/test_unicode_filenames.cc:66:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* out = fopen(outname, "wb"); data/qpdf-10.0.4/zlib-flate/zlib-flate.cc:82:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[10000]; data/qpdf-10.0.4/libqpdf/BufferInputSource.cc:143:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BufferInputSource::read(char* buffer, size_t length) data/qpdf-10.0.4/libqpdf/ClosedFileInputSource.cc:91:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ClosedFileInputSource::read(char* buffer, size_t length) data/qpdf-10.0.4/libqpdf/ClosedFileInputSource.cc:94:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t r = this->m->fis->read(buffer, length); data/qpdf-10.0.4/libqpdf/FileInputSource.cc:57:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t len = this->read(buf, sizeof(buf)); data/qpdf-10.0.4/libqpdf/FileInputSource.cc:77:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (this->read(&ch, 1) == 0) data/qpdf-10.0.4/libqpdf/FileInputSource.cc:122:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). FileInputSource::read(char* buffer, size_t length) data/qpdf-10.0.4/libqpdf/InputSource.cc:42:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->read(buf, max_line_length); data/qpdf-10.0.4/libqpdf/InputSource.cc:76:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(start_chars) < 1) || (strlen(start_chars) > size)) data/qpdf-10.0.4/libqpdf/InputSource.cc:76:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(start_chars) < 1) || (strlen(start_chars) > size)) data/qpdf-10.0.4/libqpdf/InputSource.cc:101:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((p == 0) || ((p + strlen(start_chars)) > (buf + bytes_read))) data/qpdf-10.0.4/libqpdf/InputSource.cc:114:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = this->read(buf, size); data/qpdf-10.0.4/libqpdf/InputSource.cc:115:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (bytes_read < strlen(start_chars)) data/qpdf-10.0.4/libqpdf/InputSource.cc:147:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((p + strlen(start_chars)) > (buf + bytes_read)) data/qpdf-10.0.4/libqpdf/InputSource.cc:159:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(p, start_chars, strlen(start_chars)) == 0) data/qpdf-10.0.4/libqpdf/MD5.cc:37:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/qpdf-10.0.4/libqpdf/MD5.cc:45:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encodeDataIncrementally(input_string, strlen(input_string)); data/qpdf-10.0.4/libqpdf/OffsetInputSource.cc:76:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). OffsetInputSource::read(char* buffer, size_t length) data/qpdf-10.0.4/libqpdf/OffsetInputSource.cc:78:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t result = this->proxied->read(buffer, length); data/qpdf-10.0.4/libqpdf/Pl_QPDFTokenizer.cc:64:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). input->read(&ch, 1); data/qpdf-10.0.4/libqpdf/QPDF.cc:269:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). processMemoryFile("empty PDF", EMPTY_PDF, strlen(EMPTY_PDF)); data/qpdf-10.0.4/libqpdf/QPDF.cc:640:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (1 == this->m->file->read(&ch, 1)) data/qpdf-10.0.4/libqpdf/QPDF.cc:660:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->m->file->read(buf, sizeof(buf) - 1); data/qpdf-10.0.4/libqpdf/QPDF.cc:893:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->m->file->read(linebuf, sizeof(linebuf) - 1); data/qpdf-10.0.4/libqpdf/QPDF.cc:1600:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (input->read(&ch, 1) == 0) data/qpdf-10.0.4/libqpdf/QPDF.cc:1614:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (input->read(&ch, 1) != 0) data/qpdf-10.0.4/libqpdf/QPDF.cc:1990:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (this->m->file->read(&ch, 1)) data/qpdf-10.0.4/libqpdf/QPDF.cc:2852:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t len = file->read(buf, to_read); data/qpdf-10.0.4/libqpdf/QPDFCrypto_gnutls.cc:87:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(reinterpret_cast<char const*>(key_data))); data/qpdf-10.0.4/libqpdf/QPDFCrypto_openssl.cc:137:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(reinterpret_cast<const char*>(key_data))); data/qpdf-10.0.4/libqpdf/QPDFObjectHandle.cc:1772:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). input->read(&ch, 1); data/qpdf-10.0.4/libqpdf/QPDFTokenizer.cc:57:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (is->read(&next, 1) == 0) data/qpdf-10.0.4/libqpdf/QPDFTokenizer.cc:405:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bs_num_count = strlen(this->m->bs_num_register); data/qpdf-10.0.4/libqpdf/QPDFTokenizer.cc:814:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (input->read(&ch, 1) == 0) data/qpdf-10.0.4/libqpdf/QPDF_linearization.cc:102:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->m->file->read(buf, tbuf_size - 1); data/qpdf-10.0.4/libqpdf/QPDF_linearization.cc:549:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). this->m->file->read(&ch, 1); data/qpdf-10.0.4/libqpdf/QUtil.cc:459:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PointerHolder<wchar_t> wmodep(true, new wchar_t[strlen(mode) + 1]); data/qpdf-10.0.4/libqpdf/QUtil.cc:461:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). wmode[strlen(mode)] = 0; data/qpdf-10.0.4/libqpdf/QUtil.cc:462:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (size_t i = 0; i < strlen(mode); ++i) data/qpdf-10.0.4/libqpdf/QUtil.cc:533:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((name1 == 0) || (strlen(name1) == 0) || data/qpdf-10.0.4/libqpdf/QUtil.cc:534:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (name2 == 0) || (strlen(name2) == 0)) data/qpdf-10.0.4/libqpdf/QUtil.cc:721:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(whoami) > 4) && data/qpdf-10.0.4/libqpdf/QUtil.cc:722:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strcmp(whoami + strlen(whoami) - 4, ".exe") == 0)) data/qpdf-10.0.4/libqpdf/QUtil.cc:724:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). whoami[strlen(whoami) - 4] = '\0'; data/qpdf-10.0.4/libqpdf/QUtil.cc:2365:37: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (size_t j = 0; j < std::wcslen(argv[i]); ++j) data/qpdf-10.0.4/libqpdf/RC4_native.cc:20:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(reinterpret_cast<char const*>(key_data))); data/qpdf-10.0.4/libqpdf/qpdf-c.cc:347:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((key == 0) || (std::strlen(key) == 0) || (key[0] != '/')) data/qpdf-10.0.4/libtests/aes.cc:91:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int hexkeylen = QIntC::to_uint(strlen(hexkey)); data/qpdf-10.0.4/libtests/aes.cc:97:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (unsigned int i = 0; i < strlen(hexkey); i += 2) data/qpdf-10.0.4/libtests/closed_file_input_source.cc:39:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is->read(b, 1); data/qpdf-10.0.4/libtests/closed_file_input_source.cc:42:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). check("read unread character", 1 == is->read(b, 1)); data/qpdf-10.0.4/libtests/cxx11.cc:348:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). std::cregex_iterator m3(str7, str7 + std::strlen(str7), expr4); data/qpdf-10.0.4/libtests/rc4.cc:42:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). unsigned int hexkeylen = QIntC::to_uint(strlen(hexkey)); data/qpdf-10.0.4/libtests/rc4.cc:48:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (unsigned int i = 0; i < strlen(hexkey); i += 2) data/qpdf-10.0.4/libtests/sha2.cc:11:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sha2.write(QUtil::unsigned_char_pointer(input), strlen(input)); data/qpdf-10.0.4/qpdf/qpdf.cc:1649:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((appdir.length() < strlen(argv[0])) && data/qpdf-10.0.4/qpdf/qpdf.cc:2485:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(parameter)) data/qpdf-10.0.4/qpdf/qpdf.cc:2495:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(parameter)) data/qpdf-10.0.4/qpdf/qpdf.cc:2550:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(argv[i]) > 1) && (argv[i][0] == '@')) data/qpdf-10.0.4/qpdf/qpdf.cc:3182:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(arg) > 0) data/qpdf-10.0.4/qpdf/qpdf.cc:4597:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (0 == strlen(uo->from_nr)) data/qpdf-10.0.4/qpdf/qpdf.cc:4603:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(uo->repeat_nr)) data/qpdf-10.0.4/qpdf/qpdf.cc:5562:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(o.outfilename); data/qpdf-10.0.4/qpdf/test_tokenizer.cc:188:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). is->read(&ch, 1); ANALYSIS SUMMARY: Hits = 345 Lines analyzed = 52154 in approximately 1.35 seconds (38753 lines/second) Physical Source Lines of Code (SLOC) = 43472 Hits@level = [0] 68 [1] 63 [2] 269 [3] 11 [4] 2 [5] 0 Hits@level+ = [0+] 413 [1+] 345 [2+] 282 [3+] 13 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 9.50037 [1+] 7.93614 [2+] 6.48693 [3+] 0.299043 [4+] 0.0460066 [5+] 0 Dot directories skipped = 2 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.