https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119320
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to He-Zhe Lin from comment #2)
> Hello,
>
> I try to change the type of "l" to be unsigned int, and the warning also
> disappears. Does this also resolve this unexpected behavior? Thanks
Well that will solve the issue for LP64/LLP64 targets but not solve the issue
overall and you still will have a security issue if you pass a very large
unsigned int and on ILP32 targets.