File: 0001-Fix-format-overflow-in-tl-parser.patch

package info (click to toggle)
tl-parser 0.0.0%2Bgit20210107.1933e76f-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 404 kB
  • sloc: ansic: 7,536; xml: 119; makefile: 29; sh: 11
file content (24 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 87d8323d82690d297ed2ddbd822aef8146ba5d1c Mon Sep 17 00:00:00 2001
From: Alexei Sorokin <sor.alexei@meowr.ru>
Date: Sun, 18 Feb 2018 16:48:29 +0300
Subject: [PATCH] Fix format overflow in tl-parser
Bug: https://github.com/vysheng/tl-parser/pull/13
Bug-Debian: https://bugs.debian.org/916157
Last-Update: 2018-12-12
---
 tl-parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: tl-parser-0.0.0+git20210107.1933e76f/tl-parser.c
===================================================================
--- tl-parser-0.0.0+git20210107.1933e76f.orig/tl-parser.c
+++ tl-parser-0.0.0+git20210107.1933e76f/tl-parser.c
@@ -1962,7 +1962,7 @@ struct tl_combinator_tree *tl_parse_args
       char *name = S->data;
       if (!name) {
         static char s[20];
-        sprintf (s, "%lld", lrand48 () * (1ll << 32) + lrand48 ());
+        sprintf (s, "%llu", lrand48 () * (1ll << 32) + lrand48 ());
         name = s;
       }
       struct tl_var *v = tl_add_var (name, S, tt);