ladybird/Userland/Utilities
Liav A 649f78d0a4 LibGfx+Ladybird+Userland: Don't sniff for TGA images with only raw bytes
Because TGA images don't have magic bytes as a signature to be detected,
instead assume a sequence of ReadonlyBytes is a possible TGA image only
if we are given a path so we could check the extension of the file and
see if it's a TGA image.

When we know the path of the file being loaded, we will try to first
check its extension, and only if there's no match to a known decoder,
based on simple extension lookup, then we would probe for other formats
as usual with the normal sniffing method.
2023-01-18 21:48:35 +01:00
..
abench.cpp Userland: Silence warnings from ElapsedTimer::elapsed() type change 2023-01-07 14:51:04 +01:00
adjtime.cpp Userland: Remove unecessary uses of __serenity__ macro 2022-10-10 12:23:12 +02:00
allocate.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
aplay.cpp Userland: Remove a bunch of unveil calls on /sys/kernel/processes 2023-01-13 13:41:30 +01:00
arp.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
asctl.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
base64.cpp base64: TRY() the fallible function encode_base64() 2023-01-08 20:13:32 +00:00
basename.cpp Everywhere: Use default execpromises argument for Core::System::pledge 2021-11-28 08:04:57 +01:00
beep.cpp beep: Port to LibMain :^) 2022-01-09 11:16:00 +03:30
blockdev.cpp blockdev: Use Core::System::open() instead of LibC open() 2023-01-08 15:19:59 +00:00
bt.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
cal.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cat.cpp cat: Return a non-null value if an error occurred 2022-11-24 21:01:54 -05:00
checksum.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
chgrp.cpp chgrp: Use StringView instead of 'char const*' 2023-01-08 19:02:50 +01:00
chmod.cpp chmod: Implement the --recursive flag 2022-07-25 15:32:46 +02:00
chown.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
chres.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
cksum.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
clear.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
CMakeLists.txt Utilities: Add new utility for converting images to raw bitmap binaries 2023-01-15 12:43:03 +01:00
cmp.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
comm.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
config.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
copy.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cp.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
cpp-lexer.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cpp-parser.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cpp-preprocessor.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
cut.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
date.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
dd.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
df.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
diff.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
dirname.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
disasm.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
disk_benchmark.cpp Utilities: Store per-benchmark timeout in AK::Time rather than integer 2023-01-07 14:51:04 +01:00
dmesg.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
du.cpp du: Add an option to print the human readable sizes in powers of 10 2023-01-15 19:12:19 +01:00
echo.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
env.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
errno.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
expr.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
false.cpp false: Port to LibMain 2022-01-14 19:42:19 +02:00
fdtdump.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
fgrep.cpp Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00
file.cpp LibGfx+Ladybird+Userland: Don't sniff for TGA images with only raw bytes 2023-01-18 21:48:35 +01:00
find.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
flock.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
fortune.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
functrace.cpp Everywhere: Remove "LibC/" includes, add lint-rule against it 2023-01-07 10:01:37 -07:00
gml-format.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
grep.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
gron.cpp gron: Add options for enabling/disabling colored output 2022-12-15 12:20:37 +00:00
groupadd.cpp Everywhere: Use my fairly new and shiny serenityos.org email :^) 2022-06-30 15:59:42 +01:00
groupdel.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
groups.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
gunzip.cpp LibCompress: Port GzipDecompressor to Core::Stream 2022-12-10 12:05:55 +00:00
gzip.cpp LibCompress: Port GzipCompressor to Core::Stream 2023-01-10 10:28:26 +01:00
head.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
headless-browser.cpp LibGfx+Ladybird+Userland: Don't sniff for TGA images with only raw bytes 2023-01-18 21:48:35 +01:00
hello-world.jakt Meta+Userland: Add jakt as an optional Lagom Tool 2022-05-23 23:05:45 +02:00
hexdump.cpp hexdump: Add an option to specify dump offset 2023-01-15 12:10:21 +01:00
host.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
hostname.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
icc.cpp LibGfx+icc: Look at profile_size field 2023-01-08 23:41:14 +01:00
id.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ifconfig.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
image2bin.cpp Utilities: Add new utility for converting images to raw bitmap binaries 2023-01-15 12:43:03 +01:00
ini.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
install.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
jail-attach.cpp Userland: Enhance jail-attach utility to support existing and new jails 2022-11-26 01:47:50 -07:00
jail-create.cpp Userland: Add support for jails 2022-11-05 18:00:58 -06:00
js.cpp LibJS+Everywhere: Rename Value::to_string to to_deprecated_string 2023-01-15 01:00:20 +00:00
json.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
kcov-example.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
keymap.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
kill.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
killall.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
ldd.cpp Utilities: Introduce the ldd utility 2022-12-31 05:06:39 -07:00
less.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ln.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
logout.cpp Userland: Remove a bunch of unveil calls on /sys/kernel/processes 2023-01-13 13:41:30 +01:00
ls.cpp ls: Add an option to print the human readable sizes in powers of 10 2023-01-15 19:12:19 +01:00
lsblk.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lscpu.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
lsirq.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
lsjails.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
lsof.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
lspci.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
lsusb.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
man.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
markdown-check.cpp markdown-check: Check that binary links use the text "Open" 2023-01-08 13:35:29 +01:00
matroska.cpp Everywhere: Fully qualify IsLvalueReference in TRY() macros 2023-01-15 00:56:31 +00:00
md.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
mkdir.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
mkfifo.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
mknod.cpp mknod: Port to LibMain 2022-01-24 14:01:58 +03:30
mktemp.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
mount.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
mv.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
nc.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
netstat.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
nl.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
nologin.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
notify.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
nproc.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
ntpquery.cpp ntpquery: Explicitly zero initialize msghdr and fill in fields 2022-12-20 11:04:05 +01:00
open.cpp open: Use more StringView instead of const char* 2022-01-31 15:25:07 +01:00
passwd.cpp passwd: Use StringView instead of DeprecatedString 2023-01-08 17:10:53 +01:00
paste.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pathchk.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pgrep.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
pidof.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
ping.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
pkill.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
pledge.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pls.cpp Userland/pls: Use Core::System::exec_command method to execute a command 2022-11-05 18:00:58 -06:00
pmap.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
pmemdump.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
printf.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
pro.cpp pro: Use Core::Stream for writing contents to the output 2023-01-17 23:55:34 +01:00
profile.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ps.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
purge.cpp purge: Port to LibMain 2022-03-22 11:39:20 +01:00
pwd.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
readelf.cpp Userland: Remove i686 support 2022-12-28 11:53:41 +01:00
readlink.cpp readlink: Use StringView instead of const char* 2022-03-24 11:57:51 +01:00
realpath.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
reboot.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
rev.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
rm.cpp LibCore: Remove the force parameter from File::remove 2022-12-23 10:38:14 -05:00
rmdir.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
route.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
run-tests.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
sed.cpp sed: Perform case insensitive substitutions with "/i" 2023-01-06 13:52:21 -07:00
seq.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
shot.cpp LibGUI+Everywhere: Use fallible Window::set_main_widget() everywhere :^) 2023-01-06 13:36:02 -07:00
shuf.cpp Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
shutdown.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
sleep.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
sort.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
sql.cpp sql+SQLStudio: Recover from errors preparing SQL statements 2022-12-30 14:17:18 +01:00
stat.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
strace.cpp strace: Fix ignored errors in formatting 2023-01-13 21:09:26 +00:00
strings.cpp Utilities: Add strings 2022-12-04 12:08:48 +00:00
stty.cpp Everywhere: Remove unused includes of AK/Array.h 2023-01-02 20:08:35 +00:00
su.cpp LibCore: Propagate errors from LibCore::Account::login() 2022-09-27 21:29:44 +01:00
sync.cpp sync: Port to LibMain 2022-02-01 04:58:24 +00:00
syscall.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
sysctl.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
tac.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
tail.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
tar.cpp LibCompress: Port GzipCompressor to Core::Stream 2023-01-10 10:28:26 +01:00
tee.cpp Everywhere: Use my fairly new and shiny serenityos.org email :^) 2022-06-30 15:59:42 +01:00
telws.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
test-bindtodevice.cpp test-bindtodevice: Port to LibMain 2022-03-29 21:28:29 -07:00
test-fuzz.cpp Lagom/Fuzzers: Add fuzzer for the TGALoader code 2023-01-15 12:43:03 +01:00
test-imap.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
test-pthread.cpp Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
test-unveil.cpp LibCore: Replace the ArgsParser option argument setting with an enum 2022-07-14 00:24:24 +01:00
test.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
test_env.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
timezone.cpp Everywhere: Update copyrights with my new serenityos.org e-mail :^) 2022-01-31 18:23:22 +00:00
top.cpp Utilities: Fix top utility not calling exit() on SIGINT 2022-12-31 00:04:19 +01:00
touch.cpp Everywhere: Make global inline functions not static 2023-01-04 20:04:57 +01:00
tr.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
traceroute.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
tree.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
true.cpp true: Port to LibMain 2022-03-22 11:39:20 +01:00
truncate.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
tsort.cpp tsort: Suppress warnings with -q 2022-12-16 10:41:56 -07:00
tt.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
ttfdisasm.cpp Utilities: Add ttfdisasm for disassembling OpenType instructions 2023-01-12 11:27:57 +01:00
tty.cpp tty: Port to LibMain 2022-03-29 21:28:29 -07:00
umount.cpp umount: Port to LibMain 2022-01-22 13:31:52 +02:00
uname.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
uniq.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
unveil.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
unzip.cpp LibArchive+Utilities: Stop using DeprecatedString 2023-01-08 09:54:08 +00:00
update-cpp-test-results.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
uptime.cpp uptime: Port to Core::Stream::File, use AK::human_readable_time() 2022-12-21 08:41:34 +00:00
useradd.cpp AK: Stop using DeprecatedString in Base64 encoding 2022-12-20 10:34:19 +01:00
userdel.cpp userdel: Use Core::Account::sync() to interact with sensitive files 2022-12-31 04:24:05 -07:00
usermod.cpp LibCore: Use StringView instead of char * in Account 2022-09-27 21:29:44 +01:00
utmpupdate.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
w.cpp AK+Everywhere: Rename JsonObject::get() to ::get_deprecated() 2023-01-17 19:52:52 -05:00
wallpaper.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
wasm.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
watch.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
wc.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
which.cpp Userland: Consolidate most PATH resolving into a single implementation 2022-08-23 19:00:04 +01:00
whoami.cpp whoami: Port to LibMain :^) 2021-11-30 23:34:40 +01:00
wsctl.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
xargs.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
xml.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
yes.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
zip.cpp LibCompress: Port DeflateCompressor to Core::Stream 2023-01-10 10:28:26 +01:00