Bug#916157: tl-parser FTBFS on 32bit: sprintf format overflow

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#916157: tl-parser FTBFS on 32bit: sprintf format overflow

Adrian Bunk-3
Source: tl-parser
Version: 0.0.0+git20180215.f49077de-1
Severity: important

https://buildd.debian.org/status/package.php?p=tl-parser&suite=sid

...
tl-parser.c: In function 'tl_parse_args134':
tl-parser.c:1907:26: error: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
         sprintf (s, "%lld", lrand48 () * (1ll << 32) + lrand48 ());
                          ^

Reply | Threaded
Open this post in threaded view
|

Bug#916157: tl-parser FTBFS on 32bit: sprintf format overflow

Ying-Chun Liu (PaulLiu)-3
Adrian Bunk 於 2018/12/11 上午2:09 寫道:

> Source: tl-parser
> Version: 0.0.0+git20180215.f49077de-1
> Severity: important
>
> https://buildd.debian.org/status/package.php?p=tl-parser&suite=sid
>
> ...
> tl-parser.c: In function 'tl_parse_args134':
> tl-parser.c:1907:26: error: '__builtin__sprintf_chk' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
>          sprintf (s, "%lld", lrand48 () * (1ll << 32) + lrand48 ());
>                           ^
>
Hi Adrian,

Thanks for bug reporting.

It seems to me that this patch should fix this problem.
https://github.com/vysheng/tl-parser/pull/13

I'll apply this patch soon and re-upload it.

Yours,
Paul


--
                                PaulLiu (劉穎駿)
E-mail: Ying-Chun Liu (PaulLiu) <[hidden email]>


signature.asc (849 bytes) Download Attachment