mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
libsndfile: update to 1.0.19 (LBSNDF-7)
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0186 http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz This will likely require a fresh boostrap to updated source checkouts. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13415 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2002-2005 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2002-2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
@@ -20,43 +20,25 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "sfendian.h"
|
||||
|
||||
#include "test_main.h"
|
||||
|
||||
#define FMT_SHORT "0x%04x\n"
|
||||
#define FMT_INT "0x%08x\n"
|
||||
|
||||
#if SIZEOF_INT64_T == SIZEOF_LONG
|
||||
#define FMT_INT64 "0x%016lx\n"
|
||||
#else
|
||||
#define FMT_INT64 "0x%016llx\n"
|
||||
#endif
|
||||
|
||||
static void test_endswap_short (void) ;
|
||||
static void test_endswap_int (void) ;
|
||||
static void test_endswap_int64_t (void) ;
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
test_endswap_short () ;
|
||||
test_endswap_int () ;
|
||||
test_endswap_int64_t () ;
|
||||
|
||||
return 0 ;
|
||||
} /* main */
|
||||
#define FMT_INT64 "0x%016" PRIx64 "\n"
|
||||
|
||||
/*==============================================================================
|
||||
** Actual test functions.
|
||||
** Test functions.
|
||||
*/
|
||||
|
||||
|
||||
@@ -75,7 +57,7 @@ test_endswap_short (void)
|
||||
{ short orig [4], first [4], second [4] ;
|
||||
int k ;
|
||||
|
||||
printf (" %-24s : ", "test_endswap_short") ;
|
||||
printf (" %-40s : ", "test_endswap_short") ;
|
||||
fflush (stdout) ;
|
||||
|
||||
for (k = 0 ; k < ARRAY_LEN (orig) ; k++)
|
||||
@@ -135,7 +117,7 @@ test_endswap_int (void)
|
||||
{ int orig [4], first [4], second [4] ;
|
||||
int k ;
|
||||
|
||||
printf (" %-24s : ", "test_endswap_int") ;
|
||||
printf (" %-40s : ", "test_endswap_int") ;
|
||||
fflush (stdout) ;
|
||||
|
||||
for (k = 0 ; k < ARRAY_LEN (orig) ; k++)
|
||||
@@ -195,7 +177,7 @@ test_endswap_int64_t (void)
|
||||
{ int64_t orig [4], first [4], second [4] ;
|
||||
int k ;
|
||||
|
||||
printf (" %-24s : ", "test_endswap_int64_t") ;
|
||||
printf (" %-40s : ", "test_endswap_int64_t") ;
|
||||
fflush (stdout) ;
|
||||
|
||||
for (k = 0 ; k < ARRAY_LEN (orig) ; k++)
|
||||
@@ -242,4 +224,12 @@ test_endswap_int64_t (void)
|
||||
|
||||
|
||||
|
||||
void
|
||||
test_endswap (void)
|
||||
{
|
||||
test_endswap_short () ;
|
||||
test_endswap_int () ;
|
||||
test_endswap_int64_t () ;
|
||||
|
||||
} /* test_endswap */
|
||||
|
||||
|
Reference in New Issue
Block a user