mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +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) 2006 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2006-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 General Public License as published by
|
||||
@@ -32,7 +32,6 @@
|
||||
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "utils.h"
|
||||
@@ -46,11 +45,6 @@
|
||||
#if TEST_WIN32
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#define DLL_NAME "cygsndfile"
|
||||
#else
|
||||
#define DLL_NAME "libsndfile"
|
||||
#endif
|
||||
|
||||
static const char * locations [] =
|
||||
{ "../src/", "src/", "../src/.libs/", "src/.libs/",
|
||||
@@ -64,7 +58,13 @@ test_ordinal (HMODULE hmod, const char * func_name, int ordinal)
|
||||
|
||||
print_test_name ("win32_ordinal_test", func_name) ;
|
||||
|
||||
ord = GetProcAddress (hmod, (LPSTR) ordinal) ;
|
||||
#if SIZEOF_VOIDP == 8
|
||||
#define LPCSTR_OF_ORDINAL(x) ((LPCSTR) ((int64_t) (x)))
|
||||
#else
|
||||
#define LPCSTR_OF_ORDINAL(x) ((LPCSTR) (x))
|
||||
#endif
|
||||
|
||||
ord = GetProcAddress (hmod, LPCSTR_OF_ORDINAL (ordinal)) ;
|
||||
if ((name = GetProcAddress (hmod, func_name)) == NULL)
|
||||
{ FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError (),
|
||||
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &lpmsg, 0, NULL) ;
|
||||
@@ -89,7 +89,7 @@ win32_ordinal_test (void)
|
||||
int k, ordinal, errors = 0 ;
|
||||
|
||||
for (k = 0 ; locations [k] != NULL ; k++)
|
||||
{ snprintf (buffer, sizeof (buffer), "%s/%s.def", locations [k], DLL_NAME) ;
|
||||
{ snprintf (buffer, sizeof (buffer), "%s/libsndfile-1.def", locations [k]) ;
|
||||
if ((file = fopen (buffer, "r")) != NULL)
|
||||
break ;
|
||||
} ;
|
||||
@@ -100,7 +100,7 @@ win32_ordinal_test (void)
|
||||
} ;
|
||||
|
||||
for (k = 0 ; locations [k] != NULL ; k++)
|
||||
{ snprintf (buffer, sizeof (buffer), "%s/%s-1.dll", locations [k], DLL_NAME) ;
|
||||
{ snprintf (buffer, sizeof (buffer), "%s/libsndfile-1.dll", locations [k]) ;
|
||||
if ((hmod = (HMODULE) LoadLibrary (buffer)) != NULL)
|
||||
break ;
|
||||
} ;
|
||||
@@ -137,18 +137,10 @@ win32_ordinal_test (void)
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
#if TEST_WIN32
|
||||
#if (TEST_WIN32 && WIN32_TARGET_DLL)
|
||||
win32_ordinal_test () ;
|
||||
#endif
|
||||
|
||||
return 0 ;
|
||||
} /* main */
|
||||
|
||||
|
||||
/*
|
||||
** Do not edit or modify anything in this comment block.
|
||||
** The arch-tag line is a file identity tag for the GNU Arch
|
||||
** revision control system.
|
||||
**
|
||||
** arch-tag: 708f6815-e787-4143-bb99-f32c1bb5564e
|
||||
*/
|
||||
|
Reference in New Issue
Block a user