Commit graph

64 commits

Author SHA1 Message Date
Micah Snyder
9b9999d778 Rename core scanning functions
Many of the core scanning functions' names no longer represent their
specific purpose or arguments. This commit aims to make the names more
intuitive. Names are now prefixed with "magic" if they involve
file-typing and file-type parsing. In addition, each function now
includes the type of input being scanned whether its "desc", "fmap", or
"buff". Some of the APIs also now specify "type" to indicate that a type
other than "ANY" may be passed in to select the type rather than use
file type magic for type recognition.

| current name              | new name                          |
| ------------------------- | --------------------------------- |
| magic_scandesc()          | cli_magic_scan()                  |
| cli_magic_scandesc_type() | <delete>                          |
| cli_magic_scandesc()      | cli_magic_scan_desc()             |
| cli_base_scandesc()       | cli_magic_scan_desc_type()        |
| cli_partition_scandesc()  | <delete>                          |
| cli_map_scandesc()        | magic_scan_nested_fmap_type()     |
| cli_map_scan()            | cli_magic_scan_nested_fmap_type() |
| cli_mem_scandesc()        | cli_magic_scan_buff()             |
| cli_scanbuff()            | cli_scan_buff()                   |
| cli_scandesc()            | cli_scan_desc()                   |
| cli_fmap_scandesc()       | cli_scan_fmap()                   |
| cli_scanfile()            | cli_magic_scan_file()             |
| cli_scandir()             | cli_magic_scan_dir()              |
| cli_filetype2()           | cli_determine_fmap_type()         |
| cli_filetype()            | cli_compare_ftm_file()            |
| cli_partitiontype()       | cli_compare_ftm_partition()       |
| cli_scanraw()             | scanraw()                         |
2020-06-03 11:00:40 -04:00
Aldo Mazzeo
f366b7c703 Transforming the PNG checker into a PNG exploit seeker 2020-05-08 13:24:25 -04:00
Aldo Mazzeo
153a87a74b Making the GIF parser more tolerant and supporting GIF overlays 2020-04-23 10:48:07 -07:00
Micah Snyder
206dbaefe8 Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
Micah Snyder
5f4f69102d Correcting types from int to cl_error_t where appropriate. Eliminating unused variables and referencing unused parameters to remove warnings. 2019-10-02 16:08:25 -04:00
Micah Snyder
0450e68551 Added new EGG archive extraction feature, written from scratch based on ESTsoft's EGG archive specification.
EGG extraction support includes deflate, bzip2, and lzma decompression. AZO (LZO?) decompression not yet supported. Solid archives not yet supported. Split archives may have some limited success.

This commit also includes updates to autoconf iconv.m4 file enable detection of libiconv in alternative install locations.
2019-10-02 16:08:25 -04:00
Micah Snyder
52cddcbcfd Updating and cleaning up copyright notices. 2019-10-02 16:08:18 -04:00
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. 2019-10-02 16:08:17 -04:00
Micah Snyder
72fd33c8b2 clang-format'd using new .clang-format rules. 2019-10-02 16:08:16 -04:00
Micah Snyder (micasnyd)
56bb195e07 bb12102: adding CL_TYPE_LNK for Windows Shortcut Files. 2018-12-02 23:07:01 -05:00
Steven Morgan
aedd18ac32 bb11586 - change CL_TYPE_EPS to CL_TYPE_PS. 2016-06-28 17:39:06 -04:00
Steven Morgan
e98acd72db bb11586 - add file type CL_TYPE_EPS for raw scan matching of PostScript files. 2016-06-28 11:37:31 -04:00
Kevin Lin
ef48d7cbeb MHTML: added filetype and switch case 2016-05-26 17:05:35 -04:00
Kevin Lin
c6f7be5536 ooxml_hwp: add support for filetyping and preclassification 2015-12-17 16:18:17 -05:00
Kevin Lin
6cd5a9dc4e hwpole2: new filetype and handler for hwp embedded ole2 files 2015-12-17 16:18:17 -05:00
Kevin Lin
904fe15510 add HMPML filetype, tab fixes in filetype.c 2015-12-16 16:16:01 -05:00
Kevin Lin
146fbb29ad add HWP 3.x internal filetypes 2015-12-09 10:41:52 -05:00
Mickey Sola
46a35abe56 mass update of copyright headers 2015-09-17 13:41:26 -04:00
Kevin Lin
e7b3198df2 bb#9858 - added target 14 for binary (unidentified) files 2015-07-23 16:37:15 -04:00
Kevin Lin
4cdcd47de8 added enums for Word 2003 XML and Excel 2003 XML files 2015-03-10 14:01:35 -04:00
Shawn Webb
30a7509744 Add proof-of-concept XDP support.
This feature requires libxml2 support. This commit bumps FLEVEL and
introduces a new filetype based on the expected XML namespace for XDP
files.
2014-07-31 19:11:22 -04:00
Shawn Webb
221825fd59 Update copyright information. 2014-04-30 15:42:11 -04:00
Steven Morgan
de46d3e356 Add new target type for json properties file and scanning of the same. 2014-04-29 17:15:07 -04:00
Kevin Lin
2612de2916 mbr: lowered magic otf scanning priority
scanners: removed redundant call to scan function
pe_icons: collected 'broken image' dbgmsgs into single dbgmsg
2014-03-24 18:45:48 -04:00
Kevin Lin
6c2feae2be libclamav: linked MBR and APM parsing
filetypes: handled file misclassification as mbr
2014-02-06 19:01:44 -05:00
Kevin Lin
fce85dd750 libclamav: added GPT parsing for raw DMGs 2014-01-24 14:25:47 -05:00
Steve Morgan
70ef8414df Add file type recognition for Office Open XML. 2013-10-17 16:54:21 -04:00
Steve Morgan
43d7f6f64d XZ file type support 2013-10-08 17:17:44 -04:00
David Raynor
2d69fdbb2f libclamav: partition magic buffer size tweak to match magic 2013-09-23 03:19:07 -04:00
David Raynor
1d1c4b154f bb #1570: partition typing and HFS+ 2013-09-17 16:45:48 -04:00
David Raynor
ca019d6d94 libclamav: stub work for DMG (bb #1570) and XAR (bb #3801) formats 2013-08-27 13:44:11 -04:00
David Raynor
703a9258ea bb #6702: Add Java class type and target 2013-02-07 14:08:03 -05:00
Török Edvin
569bdeebe8 Merge branch 'fmapify'
* fmapify: (54 commits)
  workaround for unrar not supporting fmap.
  stfu on large lzma allocs
  handle 7z encryption detection albeit post extraction and blockencrypted
  add 7z SFX support - bb#3063
  fix makefile for external LLVM 2.9
  fix wrong interaction between prescan_cb caching and postscan_cb
  bytecode_watchdog: fix use of unaddressable data
  UPgrade lzma SDK to version 9.20 Also fmapify
  export cl_fmap_close
  cli_map_scandesc convenience API
  Introduce cli_map_scandesc to scan a portion of the existing file
  fix utf16_to_utf8, and add testcase
  cli_utf16_to_utf8
  fmapify jpeg_exploit
  fmaify cli_scan_riff
  fmapify mydoom
  export filetype cb
  factor out common code
  fix mem API of new fmap
  unit tests for new fmap scan API
  ...

Conflicts:
	libclamav/Makefile.in
	libclamav/c++/Makefile.am
	libclamav/c++/Makefile.in
	libclamav/filetypes_int.h
	libclamav/scanners.c
	libclamav/str.c
	unit_tests/check_clamav.c
2012-01-04 15:52:33 +02:00
aCaB
583cd65fc4 Add support for scanning different types of iso9660 image files.
The allowed sector size is within 2048 to 2448 (2352 raw + 96 sub).
Right now only the only file system supported is plain iso9660 with
optional Joliet extensions.
Additionally files with multi extents and interleaved files are not
supported.

Finally, due to the multiple possible ways to interpret the content
of a cd/dvd, I cannot guarantee that we scan the "right" files.
2011-11-14 21:46:47 +01:00
aCaB
9a47aa20e6 add 7z SFX support - bb#3063 2011-11-01 12:27:46 +01:00
Tomasz Kojm
44a3e21aae libclamav: add skeleton code for SWF parser
libclamav/others.h: bump f-level
2011-03-28 20:25:40 +02:00
aCaB
c27d40568a Extend prescan_cb with file type
WARNING: THIS BREAKS THE ABI! - See clamav.h
2011-03-04 18:27:32 +01:00
aCaB
59098a112e drop type-8 sigs (bb#895) 2010-02-08 13:47:20 +01:00
Tomasz Kojm
55094a9c76 libclamav: base code for unified container metadata matcher (bb#1579) 2010-01-07 18:26:12 +01:00
aCaB
49cc1e3c35 s/struct F_MAP/fmap_t/ 2009-10-02 18:09:31 +02:00
aCaB
048d76777f scanners to fmap - hackish
peheader to fmap
lacks review + elf + macho
2009-09-01 13:49:36 +02:00
aCaB
81fded1131 7z support 2009-08-06 22:46:12 +02:00
aCaB
d11228db8f merge preliminary IS support 2009-07-14 23:44:03 +02:00
Tomasz Kojm
3222a09656 libclamav: add support for Universal Binaries
(archives with Mach-O files for different architectures, bb#1592)
2009-07-14 18:19:54 +02:00
aCaB
cadaa7032f ISHIELD support:
- preliminary ishield-msi ftype sport
2009-07-13 01:02:13 +02:00
Tomasz Kojm
89c14869ae missing stuff (-a !@(*&!(@*&) 2009-07-08 15:05:22 +02:00
Tomasz Kojm
75e46945d2 libclamav: add support for cpio archives (bb#1649) - missing changes 2009-07-06 16:15:33 +02:00
aCaB
0d9dbdef21 some leaks fixed
git-svn-id: file:///var/lib/svn/clamav-devel/branches/mpool@4280 77e5149b-7576-45b1-b177-96237e5ba77b
2008-10-19 16:16:49 +00:00
Tomasz Kojm
bc86a381c3 libclamav: scan disasm data with type-8 sigs (bb#895)
git-svn: trunk@4047
2008-07-31 22:22:57 +00:00
Tomasz Kojm
2023340a41 update copyrights and stick more files to GPLv2; move and add more credits to the AUTHORS file; add COPYING.BSD
git-svn: trunk@3749
2008-04-02 15:24:51 +00:00