This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17244] New: trunk/sysdeps/unix/sysv/linux/semctl.c:116: va_args muxup ?


https://sourceware.org/bugzilla/show_bug.cgi?id=17244

            Bug ID: 17244
           Summary: trunk/sysdeps/unix/sysv/linux/semctl.c:116: va_args
                    muxup ?
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com
                CC: drepper.fsp at gmail dot com

[trunk/sysdeps/unix/sysv/linux/semctl.c:116]: (error) va_start() or va_copy()
called subsequently on 'ap' without va_end() inbetween.
[trunk/sysdeps/unix/sysv/linux/semctl.c:122]: (error) va_list 'ap' used before
va_start() was called.

For function __new_semctl, one two many calls to va_start
and va_end.

  va_start (ap, cmd);

  /* Get the argument only if required.  */
  arg.buf = NULL;
  switch (cmd)
    {
    case SETVAL:        /* arg.val */
    case GETALL:        /* arg.array */
    case SETALL:
    case IPC_STAT:      /* arg.buf */
    case IPC_SET:
    case SEM_STAT:
    case IPC_INFO:      /* arg.__buf */
    case SEM_INFO:
      va_start (ap, cmd);
      arg = va_arg (ap, union semun);
      va_end (ap);
      break;
    }

  va_end (ap);

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]