- 论坛徽章:
- 0
|
core dump系列分析之1----高手请进
neither group1 nor group2 codes are acceptable!!!
I never heard that we can read/write to an unknown memory,
though group2 doesn't core dump, but the code is incorrect! we
should not write such code. any tool such as purify will report
ABW(Array Boundary write) like message.
To coredump or not depend on how memory allocation/management
is implemented in system. It's meaningless to discuss it in C/C++ group,
it should be a good topic for BSD/Linux/Solaris/AIX groups.
Thanks! |
|