ladybird/Userland/Utilities
sin-ack c70f45ff44 Everywhere: Explicitly specify the size in StringView constructors
This commit moves the length calculations out to be directly on the
StringView users. This is an important step towards the goal of removing
StringView(char const*), as it moves the responsibility of calculating
the size of the string to the user of the StringView (which will prevent
naive uses causing OOB access).
2022-07-12 23:11:35 +02:00
..
abench.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
adjtime.cpp
allocate.cpp
aplay.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
arp.cpp arp: Add hostname resolution 2022-04-21 13:17:29 +02:00
asctl.cpp LibAudio+Userland: Remove Audio::LegacyBuffer 2022-05-03 23:09:20 +02:00
base64.cpp base64: Replace char pointer with StringView 2022-05-02 22:18:27 +02:00
basename.cpp
beep.cpp
blockdev.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
bt.cpp Everywhere: Use my fairly new and shiny serenityos.org email :^) 2022-06-30 15:59:42 +01:00
cal.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cat.cpp
checksum.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
chgrp.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
chmod.cpp Everywhere: Use my fairly new and shiny serenityos.org email :^) 2022-06-30 15:59:42 +01:00
chown.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
chres.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
cksum.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
clear.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
CMakeLists.txt Utilities: Remove ddate joke program 2022-06-15 17:15:04 +02:00
cmp.cpp cmp: Implement cmp(1) 2022-03-19 11:01:49 -07:00
comm.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
config.cpp config: Allow setting a key to the empty string 2022-04-26 22:42:54 +02:00
copy.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
cp.cpp
cpp-lexer.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cpp-parser.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cpp-preprocessor.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
cut.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
date.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
dd.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
df.cpp
diff.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
dirname.cpp
disasm.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
disk_benchmark.cpp LibCore+Userland: Use StringViews when calling Core::System::open 2022-07-09 09:25:20 +01:00
dmesg.cpp
du.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
echo.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
edid-dump.cpp Utilities: Add edid-dump program to dump EDID from Display connectors 2022-05-27 22:27:44 +01:00
env.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
errno.cpp
expr.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
false.cpp
fdtdump.cpp
fgrep.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
file.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
find.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
flock.cpp
fortune.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
functrace.cpp Kernel: Stop requiring working malloc for syscall.h includes 2022-05-02 12:44:34 +02:00
gml-format.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
grep.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
gron.cpp
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 Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
gunzip.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
gzip.cpp
head.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
headless-browser.cpp Browser+LibWeb+WebContent: Allow Browser to load local files 2022-06-27 20:22:15 +01:00
hello-world.jakt Meta+Userland: Add jakt as an optional Lagom Tool 2022-05-23 23:05:45 +02:00
hexdump.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
host.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
hostname.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
id.cpp
ifconfig.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
ini.cpp ini: Use String for arguments 2022-04-25 10:47:56 +02:00
install.cpp LibCore+Userland: Remove File::ensure_parent_directories 2022-04-11 00:08:48 +02:00
jp.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
js.cpp js: Add missing built-in functions to help() output 2022-07-10 01:11:52 +02:00
kcov-example.cpp kcov-example: Port to LibMain 2022-03-29 21:28:29 -07:00
keymap.cpp Keymap: Fix switching selected keymap 2022-06-16 14:58:43 +01:00
kill.cpp kill: Parse CLI arguments using Arguments.strings 2022-02-12 10:53:07 -05:00
killall.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
less.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
ln.cpp ln: Fix typo in arguments argument 2022-06-28 09:20:30 +01:00
logout.cpp
ls.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
lscpu.cpp lscpu: Show size of L1 data/instruction, L2, and L3 CPU caches 2022-05-29 15:23:57 +02:00
lsirq.cpp
lsof.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
lspci.cpp AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice() 2022-06-13 15:38:51 +01:00
lsusb.cpp lsusb: Add -v flag to lsusb :^) 2022-06-02 13:14:29 +02:00
man.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
markdown-check.cpp AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00
matroska.cpp matroska: Port to LibMain 2022-03-22 11:39:20 +01:00
md.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
mkdir.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
mkfifo.cpp mkfifo: Add support for setting permissions with -m 2022-04-20 18:35:08 +02:00
mknod.cpp
mktemp.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
mount.cpp Kernel: Implement an axallowed mount option 2022-07-08 22:27:38 +00:00
mv.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
nc.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
netstat.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
nl.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
notify.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
nproc.cpp
ntpquery.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
open.cpp open: Use more StringView instead of const char* 2022-01-31 15:25:07 +01:00
pape.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
passwd.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
paste.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
pathchk.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
pgrep.cpp pgrep: Port to LibMain 2022-02-10 14:10:58 +00:00
pidof.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
ping.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
pls.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
pmap.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
pmemdump.cpp
printf.cpp AK: Differ between long and long long formats 2022-04-14 03:12:56 +04:30
pro.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
profile.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
ps.cpp Userland: Fix crash when inputting non-tty device into ps 2022-04-02 21:49:16 +02:00
purge.cpp purge: Port to LibMain 2022-03-22 11:39:20 +01:00
pwd.cpp
readelf.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02: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 reboot: Port to LibMain 2022-03-03 15:42:44 -08:00
rev.cpp
rm.cpp
rmdir.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
route.cpp route: Support removing entries with unknown gateway 2022-07-09 09:22:25 +01:00
run-tests.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
seq.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
shot.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
shuf.cpp
shutdown.cpp shutdown: Port to LibMain 2022-02-01 04:58:24 +00:00
sleep.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
sort.cpp
sql.cpp sql: Re-prompt user for input after unrecognized command 2022-03-24 07:25:04 -04:00
stat.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
strace.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
stty.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
su.cpp su: Change the HOME enviroment variable on login 2022-05-05 20:49:18 +02:00
sync.cpp sync: Port to LibMain 2022-02-01 04:58:24 +00:00
syscall.cpp Kernel: Stop requiring working malloc for syscall.h includes 2022-05-02 12:44:34 +02:00
sysctl.cpp sysctl: Port to LibMain 2022-02-01 04:58:24 +00:00
tac.cpp
tail.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tar.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
tee.cpp Everywhere: Use my fairly new and shiny serenityos.org email :^) 2022-06-30 15:59:42 +01:00
telws.cpp telws: Port to LibMain 2022-03-29 21:28:29 -07:00
test-bindtodevice.cpp test-bindtodevice: Port to LibMain 2022-03-29 21:28:29 -07:00
test-fuzz.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
test-imap.cpp
test-pthread.cpp test-pthread: Port to LibMain and let local functions return ErrorOr<T> 2022-03-29 21:28:29 -07:00
test-unveil.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
test.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02: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 Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
touch.cpp touch: Support custom timestamps 2022-05-21 18:15:00 +02:00
tr.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
traceroute.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tree.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
true.cpp true: Port to LibMain 2022-03-22 11:39:20 +01:00
truncate.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
tt.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
tty.cpp tty: Port to LibMain 2022-03-29 21:28:29 -07:00
umount.cpp
uname.cpp
uniq.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
unzip.cpp AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00
update-cpp-test-results.cpp AK: Use an enum instead of a bool for String::replace(all_occurences) 2022-07-06 11:12:45 +02:00
uptime.cpp
useradd.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
userdel.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
usermod.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
utmpupdate.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00
w.cpp
wasm.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
watch.cpp Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
wc.cpp Utilities: Read positional arguments as Strings not char*s 2022-04-11 21:09:42 +02:00
which.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
whoami.cpp
wsctl.cpp Userland: Always construct Application with try_create() 2022-04-18 12:57:34 +02:00
xargs.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
xml.cpp xml: Avoid UAF in Error return from serenity_main() 2022-05-08 16:34:58 +02:00
yes.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
zip.cpp Userland: Convert command line arguments to String/StringView 2022-07-12 23:11:35 +02:00