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
3660 else3660 else
3661 tokc.ull = n;3661 tokc.ull = n;
3662 }3662 }
3663 if (ch)
3664 error("invalid number\n");
3663}3665}
3664 3666
3665 3667

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