commit | 210bd2dd94eb96b591ccd7e587797af103c227ff | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Wed Sep 21 11:10:54 2005 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Sep 21 11:10:54 2005 +0000 |
tree | 3ff5e96acf0f2b6a73c223b5eae2580dd769b376 | |
parent | 102617f18687d6a6b115bba2da4e653c6360a7fc [diff] [blame] |
Make sure that values of absolute symbols fit in 16 bits.
diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c index f9ef406..3cf3722 100644 --- a/tools/winebuild/parser.c +++ b/tools/winebuild/parser.c
@@ -355,6 +355,11 @@ error( "Expected number value, got '%s'\n", token ); return 0; } + if (value < -0x8000 || value > 0xffff) + { + error( "Value %d for absolute symbol doesn't fit in 16 bits\n", value ); + value = 0; + } odp->u.abs.value = value; return 1; }