[libc] Expand usage of libc null checks. #116262
AlyElashram
changed the title Expand usage of libc null checks [libc] Expand usage of libc null checks. 1 year ago
AlyElashram
marked this pull request as ready for review 1 year ago
AlyElashram
marked this pull request as draft 1 year ago
AlyElashram
marked this pull request as ready for review 359 days ago
lntue
commented
on 2025-01-08
lntue
commented
on 2025-01-08
lntue
commented
on 2025-01-08
lntue
commented
on 2025-01-08
lntue
commented
on 2025-01-08
lntue
commented
on 2025-01-08
lntue
commented
on 2025-01-08
lntue
commented
on 2025-05-01
Add NullChecks to fflush.cpp
909e3187
Add NullChecks to fopen.cpp
c95c335d
Add NullChecks to fprintf.cpp
67e7cf16
Add NullChecks to fscanf.cpp
1d75d8bd
Add NullChecks to vprintf.cpp
009712fe
Add NullChecks to memchr.cpp
7ea30f20
Add NullChecks to memcmp.cpp
f60019c1
Add NullChecks to memcpy.cpp
664e3ba9
Add NullChecks to memmove.cpp
17868350
Add NullChecks to mempcpy.cpp
b934143e
Add NullChecks to memrchr.cpp
56a9bdaf
Add NullChecks to memset.cpp
1b9902a5
Add NullChecks to rindex.cpp
199f029a
Add NullChecks to stpncpy.cpp
43cd69ab
Add NullChecks to strcat.cpp
f9bb0844
Add NullChecks to strcoll.cpp and strcoll_l.cpp
dbec9c45
Add NullChecks to strcpy and strncpy
4baf7e2d
Add NullChecks to strsep.cpp
d9b3681d
Add NullChecks to strspn.cpp
dafd61ab
Revert "Add NullChecks to vprintf.cpp"
06da9639
Revert "Add NullChecks to fscanf.cpp"
c9360965
Revert "Add NullChecks to fprintf.cpp"
b6dd1780
Revert "Add NullChecks to fopen.cpp"
ccaec3fc
Revert "Add NullChecks to fflush.cpp"
9f86f3f6
Modify NullChecks to cast pointers as it will fail dereferencing a nu…
35e0367c
Modify Unit Tests to include crashing on nullptrs
1d704e2c
Formatting
72533201
Patch up memcmp test
f842fa91
Patch up memcpy test
c2ed5dd8
Only USe unit tests for memcmp test suites
6cdc4c48
Add Unit Tests to remaining suites
d52bad8a
Formatting
19ab698d
add if def guards for linux to all AssertDeath tests
778adf99
Add Missing extra lines at the eof
a600ecd3
Crash on nullptr in string_length
f88e3266
Remove pattern of making pointer copies
15896aa7
Convert Seg fault to SIGILL
01ccacda
Convert Seg fault to SIGILL
7335aac9
Trap on both pointers in strsep.cpp
41d9a4f4
Only Crash when count is greater than 0
de748e57
Formatting
82e5418c
Remove Crashing on null ptr in util function
9baa777a
Remove > 0 check (tautology)
bccdf5b1
count instead of c
5aa2a304
Move inline_strstr.h crash to entrypoints
d05ef6eb
Change all tests to use ifdef guards
961cbce6
Patch Tests' cmake
644770d7
Patch all tests to use the correct ifdef guards and change the signal…
ee9e873e
Update tests to match any signal
e6a336f4
Update memmove to pass a non zero count
b380370f
Missing braxe in memcpy_test.cpp
3fab6bd1
lntue
commented
on 2025-05-31
lntue
commented
on 2025-05-31
lntue
commented
on 2025-05-31
lntue
commented
on 2025-05-31
lntue
commented
on 2025-05-31
lntue
commented
on 2025-05-31
Remove unit test only flag.
b72022b0
Update endif comment
cee9a326
remove unit test only flag from add_libc_tests
914b4bf6
Add count checks for memrchr,memset and stpncpy
6edc8935
follow code convention with braces
8340c41a
lntue
commented
on 2025-06-02
Mass update comments
50ea5bc9
Change Mempcpy to be consistent with memcpy
5e85e398
Update mempcpy_test.cpp to have n > 0
7c8a0a68
lntue
approved these changes
on 2025-06-04
lntue
merged
ff844df7
into main 200 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub