Commit Graph

45 Commits (2e55c901b1b0571a340602ee2681255876f63f1a)

Author SHA1 Message Date
micasnyd 140c88aa4e Bump copyright for 2022 4 years ago
Micah Snyder (micasnyd) b9ca6ea103 Update copyright dates for 2021 5 years ago
Jonas Zaddach (jzaddach) d5a733ef90 XLM (Excel 4.0) macro detection and extraction 6 years ago
Micah Snyder 206dbaefe8 Update copyright dates for 2020 6 years ago
Micah Snyder bcb4505e60 bb12370 - cli_strndup and other str* replacements must be built and exported for every OS to be used outside of libclamav on systems that don't have the original functions (e.g. strndup). This commit renames the macros to be uppercase, renames the replacement functions to be preceeded with two understores (e.g. __cli_strndup), and removes the ifdef's so that they are built regardless, because there are no ifdefs in libclamav.map. 6 years ago
Micah Snyder ca8b4c466e Assortment of warning fixes. 6 years ago
Micah Snyder 155eaaad8b bb12284 - Fix to prevent path traversal when using cli_genfname() to generate filenames that may retain path and filename information. Changed scanrar so that it will no longer retain path information for extracted files. 6 years ago
Micah Snyder a8ca96687a Clean up of PDF object finding logic. Changes include recording object sizes as objects are found, identifying object streams in the object parsing section instead of the PDF parsing section, and limiting of stream and other object parsing to the size of the object instead of the size of the PDF. It is also easier to read and includes more inline documentation. 6 years ago
Micah Snyder 52cddcbcfd Updating and cleaning up copyright notices. 6 years ago
Micah Snyder b3e82e5e61 Replacing libclamav/cltypes.h with clamav-types.h.in, which generates a header clamav-types.h that we install alongside clamav.h. 6 years ago
Micah Snyder 72fd33c8b2 clang-format'd using new .clang-format rules. 6 years ago
Mickey Sola dfa92896d2 bcomp - general fixups and cleanup for byte compare code 7 years ago
Mickey Sola 9e408e7658 bb4007 - adding pcre byte sequence comparison functions 7 years ago
Micah Snyder d39cb6581f Updating libclamunrar from legacy C implementation to modern unrar 5.6.5. API changes and supporting changes included to pass the filepath of the scanned file into libclamav through the cli_ctx structure, required by the unrar library to open archives. The filename argument may be optional for the scandesc scanning variant, but libclamav will make a best effort to identify the filename from the file descriptor if it was not provided. In addition, included the ability to prefix temp file and directory names with file basenames. 7 years ago
Micah Snyder (micasnyd) 89d5207b31 Added new pdf object stream parsing capability. 7 years ago
Micah Snyder f842e965fe Replacing strntol with strntoul to ensure proper (un)signedness when parsing numbers from PDFs. 7 years ago
Micah Snyder bf6e777fa7 bb12133: Wrapping cli_strntol to provide easy error detection. Applying cli_strntol_wrap with error checking. Adding logic to identify when a parsing error is in fact a new revision of the PDF. 7 years ago
Micah Snyder 53cbdee38a bb12133: Implementing cli_strntol based on gnu gcc's strtol implementation with modifications to limit string buffer length for non-null terminated strings. Using cli_strntol in pdf.c for added safety. 7 years ago
Micah Snyder 6289eda8e0 Eliminating AUTHORS file, and moving acknowledgements for various source code contributions to the file comment blocks for the individual files, as appropriate. 8 years ago
Mickey Sola 915614e7a6 strn - adding configuration option to force use of internal strn functions for use when crosscompiling binaries against older libraries 8 years ago
Mickey Sola 47a544dc07 m4 - rework of strndup and strnlen function absence handling 8 years ago
Mickey Sola 46a35abe56 mass update of copyright headers 10 years ago
Kevin Lin 71e1364547 moved ldb_tokenize in readdb to cli_ldbtokenize in str 11 years ago
Kevin Lin 5f31c9b450 bb#11296 - various fixes to pdf string base64 string conversion 11 years ago
Kevin Lin 0e7442f11e forced pdf json strings to be utf-8 or base64 encoded 11 years ago
Steven Morgan a5bde84c28 Fix for errors on YARA rules when hex constants have odd lengths. 11 years ago
Kevin Lin 51ca644c6b implemented second nocase AC matcher using full enumerations 11 years ago
Kevin Lin a02acd50b6 [WIP] added nocase support to clamav ac algorithm 11 years ago
Shawn Webb 929090d615 Add strlcat functionality. Rely on existing strlcat and strlcpy if they are available. 11 years ago
aCaB 583cd65fc4 Add support for scanning different types of iso9660 image files. 14 years ago
Török Edvin 54e9e50dc3 cli_utf16_to_utf8 15 years ago
Tomasz Kojm 2979de20da fix some compiler warnings 16 years ago
aCaB 73d8cdedea load idb 16 years ago
Tomasz Kojm f461d74f2b libclamav: improve handling of PDF files (bb#1682) 17 years ago
Török Edvin eaf2aebdeb avoid unneeded calloc + memcpy. 17 years ago
Tomasz Kojm 72fb25eaf0 libclamav/str.c: return token count in cli_strtokenize() 17 years ago
aCaB 38e881e3c0 mpool cli_mp_hex2ui 17 years ago
Török Edvin eb2901515b move cli_unescape, and cli_textbuffer_append_normalize to str.c 18 years ago
Tomasz Kojm 2023340a41 update copyrights and stick more files to GPLv2; move and add more credits to the AUTHORS file; add COPYING.BSD 18 years ago
aCaB 2455584143 sync to trunk 18 years ago
Tomasz Kojm a3fe2c5ba1 make the parser more sensitive to syntax errors (bb#238) 18 years ago
Török Edvin ff75dedb3d strcasestr() check and replacement. 18 years ago
Tomasz Kojm bb34cb31fe update some copyrights and stick to GPL v2 19 years ago
Tomasz Kojm bedc58dee1 make some cleanups and add support for nibble matching 19 years ago
Tomasz Kojm e4e8366f9d optimize loading of .ndb files (bb#339) 19 years ago
Sven Strickroth a99111f050 remove old CVS-stuff and make the repository look more like SVN 19 years ago
Tomasz Kojm bd98896151 add support for UTF16 encoded HTML files 19 years ago
Tomasz Kojm 9b133473bc move strrcpy() into str.c 20 years ago
Tomasz Kojm 48b7b4a747 update GPL headers with new address for FSF 20 years ago
Tomasz Kojm e5916a51c8 add support for detection based on analysis of archive metadata 21 years ago