History

Add check for invalid numbers.

If there are some characters after TCC parses a number, it is an error. This bug was reported on list: http://www.mail-archive.com/tinycc-devel@nongnu.org/msg02014.html

Shinichiro Hamaji committed 17 years ago

Commit 6512d9e1 parent af6cbc41 file · +2 −0Browse files

Unified · Split

tcc.c+2−0
@@ -3660,6 +3660,8 @@ void parse_number(const char *p) · 3659 unmodified lines
36603660 else
36613661 tokc.ull = n;
36623662 }
3663+ if (ch)
3664+ error("invalid number\n");
36633665 }
36643666
36653667

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t