mirror of
https://github.com/mirror/make.git
synced 2024-12-29 14:30:42 +08:00
* src/arscan.c (ar_scan): Restrict length for sscanf of ar_mode.
This commit is contained in:
parent
af0074547d
commit
e1c072aa7e
@ -703,7 +703,7 @@ ar_scan (const char *archive, ar_member_func_t function, const void *arg)
|
||||
}
|
||||
|
||||
#ifndef M_XENIX
|
||||
sscanf (TOCHAR (member_header.ar_mode), "%o", &eltmode);
|
||||
sscanf (TOCHAR (member_header.ar_mode), "%8o", &eltmode);
|
||||
eltsize = atol (TOCHAR (member_header.ar_size));
|
||||
#else /* Xenix. */
|
||||
eltmode = (unsigned short int) member_header.ar_mode;
|
||||
|
Loading…
Reference in New Issue
Block a user