diff options
Diffstat (limited to '1001-liblangtag-gcc10.patch')
-rw-r--r-- | 1001-liblangtag-gcc10.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/1001-liblangtag-gcc10.patch b/1001-liblangtag-gcc10.patch new file mode 100644 index 0000000..358f887 --- /dev/null +++ b/1001-liblangtag-gcc10.patch @@ -0,0 +1,28 @@ +From 49135ef561f309078f0bfd6e1f15052769cf75b4 Mon Sep 17 00:00:00 2001 +From: Akira TAGOH <akira@tagoh.org> +Date: Thu, 26 Sep 2019 18:57:32 +0900 +Subject: [PATCH] Fix possible null argument for %s directive + +Patch from Jeff Law +--- + liblangtag/lt-script-db.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/liblangtag/lt-script-db.c b/liblangtag/lt-script-db.c +index 8278078..bbbd3e7 100644 +--- a/liblangtag/lt-script-db.c ++++ b/liblangtag/lt-script-db.c +@@ -133,6 +133,10 @@ lt_script_db_parse(lt_script_db_t *scriptdb, + } + cnode = cnode->next; + } ++ if (!subtag && !desc) { ++ lt_warning("No subtag and no description"); ++ goto bail1; ++ } + if (!subtag) { + lt_warning("No subtag node: description = '%s'", + desc); +-- +2.10.5 + |