default corruption action */
| 3916 | |
| 3917 | /* default corruption action */ |
| 3918 | static void reset_on_error(mstate m) { |
| 3919 | int i; |
| 3920 | ++malloc_corruption_error_count; |
| 3921 | /* Reinitialize fields to forget about all memory */ |
| 3922 | m->smallmap = m->treemap = 0; |
| 3923 | m->dvsize = m->topsize = 0; |
| 3924 | m->seg.base = 0; |
| 3925 | m->seg.size = 0; |
| 3926 | m->seg.next = 0; |
| 3927 | m->top = m->dv = 0; |
| 3928 | for (i = 0; i < NTREEBINS; ++i) |
| 3929 | *treebin_at(m, i) = 0; |
| 3930 | init_bins(m); |
| 3931 | } |
| 3932 | #endif /* PROCEED_ON_ERROR */ |
| 3933 | |
| 3934 | /* Allocate chunk and prepend remainder with chunk in successor base. */ |
nothing calls this directly
no test coverage detected