chenfanfang / AvoidCrash

This framework can effective avoid crash by potential error code. For example : If you insert a nil into a mutable array, this framework can avoid crash and note you that where cause crash.
MIT License
1.64k stars 383 forks source link

尝试这种坏的内存访问 #18

Closed MQdoyourbest closed 6 years ago

MQdoyourbest commented 7 years ago

make a crash below. char ptr = (char)-1; *ptr = 10;