2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-02-05 12:40:55 +08:00

* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't

parse more than three parts of the version number.
This commit is contained in:
Ulrich Drepper 2007-09-15 22:54:33 +00:00
parent 267c54dcef
commit 3524efe0bd
2 changed files with 6 additions and 1 deletions
ChangeLog
sysdeps/unix/sysv/linux

View File

@ -1,3 +1,8 @@
2003-11-01 Daniel Jacobowitz <dan@debian.org>
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_discover_osversion): Don't
parse more than three parts of the version number.
2007-09-15 Ulrich Drepper <drepper@redhat.com> 2007-09-15 Ulrich Drepper <drepper@redhat.com>
* stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm' * stdio-common/vfscanf.c (_IO_vfwscanf): Add support for 'm'

View File

@ -121,7 +121,7 @@ _dl_discover_osversion (void)
version <<= 8; version <<= 8;
version |= here; version |= here;
if (*cp++ != '.') if (*cp++ != '.' || parts == 3)
/* Another part following? */ /* Another part following? */
break; break;
} }