mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
musl: workaround a NULL pointer dereference in dcngettext().
This commit is contained in:
parent
1e0fc306f7
commit
6c5e4d1ee2
2 changed files with 14 additions and 1 deletions
13
srcpkgs/musl/patches/dcngettext-deref-NULL-pointer.patch
Normal file
13
srcpkgs/musl/patches/dcngettext-deref-NULL-pointer.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Fix a NULL pointer dereference in case CURRENT_LOCALE is not set up properly.
|
||||||
|
|
||||||
|
--- src/locale/dcngettext.c.orig 2015-05-18 12:29:14.897996949 +0200
|
||||||
|
+++ src/locale/dcngettext.c 2015-05-18 12:29:26.730132449 +0200
|
||||||
|
@@ -132,7 +132,7 @@ char *dcngettext(const char *domainname,
|
||||||
|
switch (category) {
|
||||||
|
case LC_MESSAGES:
|
||||||
|
locname = loc->messages_name;
|
||||||
|
- if (!*locname) goto notrans;
|
||||||
|
+ if (!locname || !*locname) goto notrans;
|
||||||
|
break;
|
||||||
|
case LC_TIME:
|
||||||
|
case LC_MONETARY:
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'musl'.
|
# Template file for 'musl'.
|
||||||
pkgname=musl
|
pkgname=musl
|
||||||
version=1.1.9
|
version=1.1.9
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--prefix=/usr --disable-gcc-wrapper"
|
configure_args="--prefix=/usr --disable-gcc-wrapper"
|
||||||
conflicts="glibc>=0"
|
conflicts="glibc>=0"
|
||||||
|
|
Loading…
Add table
Reference in a new issue