diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2023-05-24 22:05:47 +0200 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-05-27 12:17:50 +0200 |
commit | 815ea06d2c527d6827c4dfb4da3f734da90fb9b1 (patch) | |
tree | 0681446b9aeb1fa4c8e586ed3ea208e120f2c939 /Kernel/FileSystem | |
parent | e30709fca91715622a613fd5f1d998b760d441df (diff) | |
download | serenity-815ea06d2c527d6827c4dfb4da3f734da90fb9b1.zip |
AK: Test from_unix_time_parts intensively
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/ISO9660FS/Inode.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/FileSystem/ISO9660FS/Inode.cpp b/Kernel/FileSystem/ISO9660FS/Inode.cpp index 3f2d4f121b..1160e300bc 100644 --- a/Kernel/FileSystem/ISO9660FS/Inode.cpp +++ b/Kernel/FileSystem/ISO9660FS/Inode.cpp @@ -194,6 +194,8 @@ UnixDateTime ISO9660Inode::parse_numerical_date_time(ISO::NumericalDateAndTime c i32 year_offset = date.years_since_1900 - 70; // FIXME: This ignores timezone information in date. + // FIXME: This calls `VERIFY(month >= 1 && month <= 12)` (but irritatingly allows days 0 and 255), + // which means we can crash the kernel by inserting a CD with an invalid recording month. return UnixDateTime::from_unix_time_parts(year_offset, date.month, date.day, date.hour, date.minute, date.second, 0); } |