alpine 3.8
obsolete weakness #13


Weakness Breakdown


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):

This C routine is considered obsolete.

File Name:



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

 	(c) 2001 by Stefan Reinauer, <stepan :at:>

	This program is based on mngplay, part of libmng, written and (C) by
	Ralph Giles <giles :at:>

	This program my be redistributed under the terms of the
	GNU General Public Licence, version 2, or at your preference,
	any later version.

#include <unistd.h>
#include <sys/time.h>
#include <linux/vt.h>

#include "fbmngplay.h"
#include "console.h"
#include "mng.h"

mngstuff *mng;
unsigned char *bufferstream;
unsigned long bufferpos = 0, buffersize = 0;

inline void mdelay(unsigned long msec)
	usleep(msec * 1000);

/* callbacks for the mng decoder */

/* memory allocation; data must be zeroed */
mng_ptr mngalloc(mng_uint32 size)
	return (mng_ptr) calloc(1, size);

/* memory deallocation */
void mngfree(mng_ptr p, mng_uint32 size)

mng_bool mngopenstream(mng_handle mng)
	mngstuff *mymng;

	/* look up our stream struct */
	mymng = (mngstuff *) mng_get_userdata(mng);

	/* open the file */ 

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.