bison uses invalid memory in rare situations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bison (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bison
As detailed here:
http://
Bison should get fixed too.
http://
Bison does carry an interesting note:
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
`$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditio
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen];