Commit graph

18 commits

Author SHA1 Message Date
Trial97
441fb4a891
load the path name with local8Bit if not utf
extended to the symlinks stuff so I geneeralized the function:
- if I can get the utf8(the best outcome) I will use fromUtf8
- if not I will fall back to normal funciton and decode it with
fromLocal8Bit

This convention applies to:
- archive_entry_pathname
- archive_entry_symlink
- archive_entry_hardlink

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-03-17 09:12:27 +02:00
Trial97
3f97d65224
codeql: fix some warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-03-15 23:32:10 +02:00
Trial97
cf024e228f
fix utf8 archive that doesn't mark the file as utf8
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-03-15 23:28:54 +02:00
Trial97
56936cf485
fix zip path traversal
this makes sure that the file is in the given root

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-03-10 09:26:12 +02:00
Octol1ttle
584dc47da5
chore: remove double spaces from logs
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
2026-01-29 19:15:27 +05:00
Trial97
a6d6ff9926
accept libarchive warning result
this is the intended behavior to treat warnings as ok, because
teoretically the file was extracted, even if the time of the file can't
be set

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2026-01-14 00:17:17 +02:00
Seth Flynn
fc3c5cba30
Use multibyte encoding aware libarchive functions when dealing with filenames (#4457) 2025-12-15 08:09:25 -05:00
Trial97
f05fd4da2b
fix leak of cloned entry
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-14 00:20:24 +02:00
Trial97
808b09c403
improve archive detection
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-12-11 12:54:49 +02:00
Rachel Powers
87286fa6a3
fix(libarchive): use multibyte encoding aware libarchive functions when dealing with filenames
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2025-12-08 21:31:58 -07:00
Seth Flynn
ff40679d0f
refactor(launcher/archive): ensure correct filetype for archived files
We can rely on stat for most things but this

Signed-off-by: Seth Flynn <getchoo@tuta.io>
2025-11-26 17:01:09 -05:00
Trial97
792b1d6648
apply suggestions
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 19:12:13 +02:00
Trial97
085183d530
fix license headers
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:41:57 +02:00
Trial97
aa265a45ee
fix nix build
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:41:56 +02:00
Trial97
2a99bb534f
add missing copyrights
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:41:22 +02:00
Trial97
f38a0c8f98
move more zip parsings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:40:40 +02:00
Trial97
8c36be048c
move ExtractZipTask
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:39:18 +02:00
Trial97
60b2585711
move some functions from MMCZip to use libarchive
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-11-26 18:39:18 +02:00