@hasaanE No, a segmentation fault is an irregular, abrupt end of the program wherever it just happens to be executing; the caller's code is never reached again. If
strlen
returns, there was a zero byte early enough in memory that it was still accessible by the program so that no segmentation fault happened.