mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-19 19:43:34 -04:00
@@ -494,6 +494,8 @@ do_oper_extract (int oper, const char *arfname, char **argv, int argc,
|
||||
while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
|
||||
{
|
||||
Elf_Arhdr *arhdr = elf_getarhdr (subelf);
|
||||
if (arhdr == NULL)
|
||||
goto next;
|
||||
|
||||
if (strcmp (arhdr->ar_name, "/") == 0)
|
||||
{
|
||||
@@ -939,6 +941,8 @@ do_oper_delete (const char *arfname, char **argv, int argc,
|
||||
while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
|
||||
{
|
||||
Elf_Arhdr *arhdr = elf_getarhdr (subelf);
|
||||
if (arhdr == NULL)
|
||||
goto next;
|
||||
|
||||
/* Ignore the symbol table and the long file name table here. */
|
||||
if (strcmp (arhdr->ar_name, "/") == 0
|
||||
@@ -1148,6 +1152,8 @@ do_oper_insert (int oper, const char *arfname, char **argv, int argc,
|
||||
while ((subelf = elf_begin (fd, cmd, elf)) != NULL)
|
||||
{
|
||||
Elf_Arhdr *arhdr = elf_getarhdr (subelf);
|
||||
if (arhdr == NULL)
|
||||
goto next;
|
||||
|
||||
/* Ignore the symbol table and the long file name table here. */
|
||||
if (strcmp (arhdr->ar_name, "/") == 0
|
||||
|
||||
Reference in New Issue
Block a user