lion0406 / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

EOF in preprocessor directive causes free without alloc and infinite loop #181

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run $ echo -n "void main() {}
#define HA" >> boom.frag
2. run $ essl_to_glsl boom.frag

What is the expected output? What do you see instead?
Expected:
#### BEGIN COMPILER 0 INFO LOG ####

#### END COMPILER 0 INFO LOG ####

Instead, the translator crashes.

What version of the product are you using? On what operating system?
r705 on OS X 10.6

Please provide any additional information below.
I haven't been able to reproduce this in a browser, only the command line. 
Adding a newline to the incoming file should preserve semantics and side-step 
this bug.

Original issue reported on code.google.com by kosmo...@gmail.com on 15 Jul 2011 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by kbr@chromium.org on 15 Jul 2011 at 12:48

GoogleCodeExporter commented 9 years ago
The old preprocessor has been replaced with a completely rewritten one.  This 
issue should no longer be a problem. 

Original comment by dan...@transgaming.com on 26 Oct 2012 at 7:32