llvm-project
[libc] Expand usage of libc null checks.
#116262
Merged

[libc] Expand usage of libc null checks. #116262

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

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone