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:
Michael Jerris
2009-05-21 21:09:30 +00:00
parent d875d23de5
commit 77fab7603a
252 changed files with 28081 additions and 6032 deletions

View File

@@ -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 General Public License as published by
@@ -29,6 +29,7 @@
extern "C" {
#endif /* __cplusplus */
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
@@ -40,7 +41,7 @@ extern "C" {
#define PIPE_INDEX(x) ((x) + 500)
#define PIPE_TEST_LEN 12345
#if (defined (WIN32) || defined (_WIN32))
#if (defined (WIN32) || defined (_WIN32) || defined (__OS2__))
#define snprintf _snprintf
#endif
@@ -48,11 +49,15 @@ void gen_windowed_sine_float (float *data, int len, double maximum) ;
void gen_windowed_sine_double (double *data, int len, double maximum) ;
void check_file_hash_or_die (const char *filename, unsigned int target_hash, int line_num) ;
void create_short_sndfile (const char *filename, int format, int channels) ;
void check_file_hash_or_die (const char *filename, uint64_t target_hash, int line_num) ;
void print_test_name (const char *test, const char *filename) ;
void dump_data_to_file (const char *filename, void *data, unsigned int datalen) ;
void dump_data_to_file (const char *filename, const void *data, unsigned int datalen) ;
void write_mono_file (const char * filename, int format, int srate, float * output, int len) ;
static inline void
exit_if_true (int test, const char *format, ...)
@@ -70,10 +75,10 @@ exit_if_true (int test, const char *format, ...)
** can then be loaded into GNU octave for comparison.
*/
int oct_save_short (short *a, short *b, int len) ;
int oct_save_int (int *a, int *b, int len) ;
int oct_save_float (float *a, float *b, int len) ;
int oct_save_double (double *a, double *b, int len) ;
int oct_save_short (const short *a, const short *b, int len) ;
int oct_save_int (const int *a, const int *b, int len) ;
int oct_save_float (const float *a, const float *b, int len) ;
int oct_save_double (const double *a, const double *b, int len) ;
void delete_file (int format, const char *filename) ;
@@ -139,6 +144,18 @@ void test_writef_double_or_die
(SNDFILE *file, int pass, const double *test, sf_count_t frames, int line_num) ;
void compare_short_or_die (const short *left, const short *right, unsigned count, int line_num) ;
void compare_int_or_die (const int *left, const int *right, unsigned count, int line_num) ;
void compare_float_or_die (const float *left, const float *right, unsigned count, int line_num) ;
void compare_double_or_die (const double *left, const double *right, unsigned count, int line_num) ;
void gen_lowpass_noise_float (float *data, int len) ;
sf_count_t file_length (const char * fname) ;
sf_count_t file_length_fd (int fd) ;
#endif
#ifdef __cplusplus
@@ -147,4 +164,3 @@ void test_writef_double_or_die