Commit 210bd2dd authored by Alexandre Julliard's avatar Alexandre Julliard

Make sure that values of absolute symbols fit in 16 bits.

parent 102617f1
......@@ -63,7 +63,7 @@ typedef struct
typedef struct
{
int value;
unsigned short value;
} ORD_ABS;
typedef struct
......
......@@ -355,6 +355,11 @@ static int parse_spec_equate( ORDDEF *odp, DLLSPEC *spec )
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment