diff options
| author | Daniel Glöckner <daniel-gl@gmx.net> | 2008-09-11 19:17:40 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2008-09-12 22:23:00 +0200 |
| commit | 43a34d354a6a3b0df07ed065adb050c0dda9abaa (patch) | |
| tree | a37e67f91653f2abae7c477893b0d4535b6659f7 /tcctest.c | |
| parent | 5a92536cea206c06a334b0162ca00af5f1356f43 (diff) | |
| download | tinycc-43a34d354a6a3b0df07ed065adb050c0dda9abaa.tar.gz tinycc-43a34d354a6a3b0df07ed065adb050c0dda9abaa.tar.bz2 | |
Force null pointer exception for code outside of a function
TinyCC sometimes has problems to evaluate constant expressions at
compile time. This leads to code being generated outside of functions.
Without this patch some of these bugs are not caught, because
cur_text_section still points to the section of the last function.
Before the first function cur_text_section is uninitialized.
Setting cur_text_section to a null pointer should make TinyCC die in
all cases.
Diffstat (limited to 'tcctest.c')
0 files changed, 0 insertions, 0 deletions
