implicitfield
ebcd07ff33
LibArchive: Use read_entire_buffer for reading extended headers
...
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53913
2023-01-08 09:54:08 +00:00
implicitfield
28c99e7a1f
LibArchive+Utilities: Stop using DeprecatedString
...
This also slightly improves error propagation in tar, unzip and zip.
2023-01-08 09:54:08 +00:00
Tim Schumacher
69de709625
LibArchive: Do some error propagation while packing tar files
2022-12-14 15:20:37 +00:00
Tim Schumacher
1ec646ab94
LibArchive: Port TarOutputStream
to Core::Stream
2022-12-14 15:20:37 +00:00
Linus Groh
6e19ab2bbc
AK+Everywhere: Rename String to DeprecatedString
...
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
2022-12-06 08:54:33 +01:00
Tim Schumacher
714f0c3dce
LibArchive: Implement proper support for Tar file end markers
...
Previously this was handled implicitly, as our implementation of Tar
would just stop processing input as soon as it found something invalid.
However, since we now error out as soon as something is found to be
wrong, we require proper handling for zero blocks, which aren't actually
fatal.
2022-11-30 08:03:31 +01:00
Tim Schumacher
cb48b9bc30
LibArchive: Pass along errors from Tar header checksum validation
2022-11-30 08:03:31 +01:00
Tim Schumacher
fd3a823a20
LibArchive: Move loading the next tar header into a helper function
...
This now also validates the first header that is loaded, so we can drop
the corresponding FIXME from `tar`.
2022-11-30 08:03:31 +01:00
Tim Schumacher
cbeaba0c12
LibArchive: Use Core::Stream inside TarInputStream
2022-11-30 08:03:31 +01:00
Tim Schumacher
71d1d9e2b5
LibArchive: Port TarFileStream
to Core::Stream
2022-11-30 08:03:31 +01:00
implicitfield
ee0c9ed87b
LibArchive: Simplify error handling
2022-11-23 11:19:16 +01:00
implicitfield
58e9262ff1
LibArchive: Make get_field_as_integral error out on non-octal input
...
Fixes this bug that was reported by OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52493
2022-11-13 17:37:26 -07:00
implicitfield
c88d8a21cc
LibArchive: Make TarInputStream::advance report errors
...
Fixes this bug that was reported by OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52862
2022-11-13 17:37:26 -07:00
Peter Elliott
83e62e8c4f
Utilities+LibArchive: Don't follow symlinks
2022-10-31 22:10:22 +00:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Tim Schumacher
f6e86915f5
LibArchive: Implement a basic parser for tar extended headers
2022-03-05 13:17:13 +01:00
Andreas Kling
80d4e830a0
Everywhere: Pass AK::ReadonlyBytes by value
2021-11-11 01:27:46 +01:00
Peter Elliott
33d7fdca28
Everywhere: Use my cool new @serenityos.org email address
2021-09-01 11:37:25 +04:30
Idan Horowitz
1c512a702a
AK+Userland: Use idan.horowitz@serenityos.org for my copyright headers
2021-04-22 22:42:38 +02:00
Brian Gianforcaro
1682f0b760
Everything: Move to SPDX license identifiers in all files.
...
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Idan Horowitz
a809db90dd
Libraries: Rename LibTar to LibArchive
...
This is in preparation for a new implementation of zip archive
extraction and creation.
2021-03-23 16:09:36 +01:00