It is exactly the part that ChatGPT amazed me. If you have checked the code, you can see that the constraint of NULL-byte is NOT explicitly written in code, and to detect which we have to do some logical reasoning. a well-trained SE Ph.D. student takes few minutes.