[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
out of bound memory access of yylsp
From: |
yuansong |
Subject: |
out of bound memory access of yylsp |
Date: |
Thu, 21 Mar 2024 19:37:40 +0800 (CST) |
HI, After generating a rule with flex/bison, when using a code checking tool
reported the following error:
OUT of bound memory access (accessed memory precedes memory block in yylsp[-4])
C Code:
(yyval.typname)->location = (yylsp[-4])
gram.y:
get a location of express, just like :
typename->location =@4;
I suspect that it may be necessary to set a certain option. Does anyone know
about this? help me! Thank you!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- out of bound memory access of yylsp,
yuansong <=