alpine 3.6
obsolete weakness #9

2

Weakness Breakdown


Definition:

An obsolete weakness occurs when someone uses deprecated or obsolete functions when building a system. As a programming language evolves, some functions occasionally become obsolete.

Warning code(s):

These functions are considered obsolete on most systems, and very non-portable.

File Name:

libc0.9.32/src/uClibc-0.9.33.2/libpthread/linuxthreads/sysdeps/unix/sysv/linux/raise.c

Context:

The highlighted line of code below is the trigger point of this particular Alpine 3.6 obsolete weakness.

 #include <signal.h>
#include <unistd.h>

#ifndef IS_IN_rtld
# include <bits/libc-lock.h>

# ifndef SHARED
weak_extern (__pthread_raise)
# endif
#endif

/* Raise the signal SIG.  */
int
raise (sig)
     int sig;
{
#ifdef IS_IN_rtld
  return __kill (__getpid (), sig);
#else
  return __libc_maybe_call2 (pthread_raise, (sig),
			     __kill (__getpid (), sig));
#endif
}
libc_hidden_def (raise)
weak_alias (raise, gsignal) 

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.