Andy Ragusa
d959993db9
Addressed CID 432801
1 year ago
Micah Snyder
9cb28e51e6
Bump copyright dates for 2024
1 year ago
Micah Snyder
cb45aebe13
Fix several coverity issues in UnRAR interface code
...
Fix Coverity issues 192935, 192932, 192928, and 192917.
None of these are particularly serious. I thought I'd clean them up
while trying to track down a strange crash that occurs in Windows debug
builds with my specific setup when freeing the metadata filename pointer
malloced by the UnRAR iface "peek" function.
I wasn't able to figure out why freeing that causes a crash, so instead
I converted it to an array that need not be freed, and my troubles
melted away.
1 year ago
Micah Snyder
6eebecc303
Bump copyright for 2023
2 years ago
micasnyd
140c88aa4e
Bump copyright for 2022
...
Includes minor format corrections.
3 years ago
Micah Snyder (micasnyd)
b9ca6ea103
Update copyright dates for 2021
...
Also fixes up clang-format.
4 years ago
Micah Snyder (micasnyd)
25ed70fb46
Fix file access issue if in low privelege process
...
Removing problematic call to convert file descriptors to filepaths.
Added filename and tempfile names to scandesc calls in clamd.
Added a general scan option to treat the scan engine as unprivileged,
meaning that the scan engine will not have read access to the file.
Added check to drop a temp file for RAR's where the we don't have
read access to the filepath provided (i.e. unprivileged is set, or
access() check fails).
5 years ago
Micah Snyder
206dbaefe8
Update copyright dates for 2020
5 years ago
Micah Snyder
52cddcbcfd
Updating and cleaning up copyright notices.
6 years ago
Micah Snyder
72fd33c8b2
clang-format'd using new .clang-format rules.
6 years ago
Micah Snyder
5a3c50ca84
Changing the license for the complete-re-written unrar_iface code from LGPL to the BSD 3-Clause license, updating the copyright years, and adding Micah Snyder as an author.
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
Mickey Sola
46a35abe56
mass update of copyright headers
10 years ago
Török Edvin
e3540e0a5f
Add sanity check for struct packing (bb #1752 ).
...
Also move some #pragma pack() to the proper position.
16 years ago
Török Edvin
0b44bb9f3b
use same symbols as 0.95 for libclamunrar_iface (bb #1535 ).
...
git-svn: trunk@5018
16 years ago
Török Edvin
cd0a934f67
Prefer libclamunrar_iface that matches version (bb #1491 ).
...
Add $libdir to ltdl searchpath (bb #1476 ).
git-svn: trunk@4992
16 years ago
Tomasz Kojm
f009e24102
libclamunrar, libclamav: don't depend on the uncompressed size field in RAR headers (bb#1467)
...
git-svn: trunk@4977
16 years ago
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
16 years ago
aCaB
bb7bd3abfd
final
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4368 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
06fd4ce982
libclamunrar_iface, libclamav: improve detection of encrypted RAR archives (bb#1134)
...
git-svn: trunk@4117
17 years ago
aCaB
c1856fcbce
libclamunrar_iface - realign structs - see bb#474
...
git-svn: trunk@3535
18 years ago
Tomasz Kojm
3a68e8746a
add missing #pragma pack directives (bb#769)
...
git-svn: trunk@3517
18 years ago
Tomasz Kojm
b41665bfcb
minor cleanup
...
git-svn: trunk@3456
18 years ago
Tomasz Kojm
5ca7fd1813
re-include RAR code
...
git-svn: trunk@3396
18 years ago