Details
Details
- Reviewers
sivachandra gAlfonso-bit - Group Reviewers
Restricted Project Restricted Project - Commits
- rG0784e62c3c4a: [libc] Fix strtok_r crash when src and *saveptr are both nullptr
Diff Detail
Diff Detail
Event Timeline
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
Comment Actions
Couple of nits inline. I can submit this for you after you update.
| libc/src/string/string_utils.h | ||
|---|---|---|
| 79 | Can we avoid this pattern and do it in two steps: *src = '\0'; src++; | |
| libc/test/src/string/strtok_r_test.cpp | ||
| 89 | May be add: ASSERT_STREQ(reserver, nullptr); May be that is what your intention was below, but not sure. | |
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
| libc/test/src/string/strtok_r_test.cpp | ||
|---|---|---|
| 89 | Yeah that is what I meant. Thank you! | |
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
This comment was removed by gAlfonso-bit.
Can we avoid this pattern and do it in two steps: