aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rwxr-xr-xsrc/plugins/fuzz_default.sh4
-rw-r--r--src/plugins/gif_extractor.c6
-rw-r--r--src/plugins/old/ebml_extractor.c6
-rw-r--r--src/plugins/rpm_extractor.c14
4 files changed, 15 insertions, 15 deletions
diff --git a/src/plugins/fuzz_default.sh b/src/plugins/fuzz_default.sh
index c404723..7418dff 100755
--- a/src/plugins/fuzz_default.sh
+++ b/src/plugins/fuzz_default.sh
@@ -6,11 +6,11 @@ ZZSTARTSEED=0
6ZZSTOPSEED=100 6ZZSTOPSEED=100
7ret=0 7ret=0
8# fallbacks for direct, non-"make check" usage 8# fallbacks for direct, non-"make check" usage
9if test x"$testdatadir" = x"" 9if test x"${testdatadir:-NONE}" = xNONE""
10then 10then
11 testdatadir=../../test 11 testdatadir=../../test
12fi 12fi
13if test x"$bindir" = x"" 13if test x"${bindir:-NONE}" = xNONE""
14then 14then
15 bindir=`grep "^prefix = " ./Makefile | cut -d ' ' -f 3` 15 bindir=`grep "^prefix = " ./Makefile | cut -d ' ' -f 3`
16 bindir="$bindir/bin" 16 bindir="$bindir/bin"
diff --git a/src/plugins/gif_extractor.c b/src/plugins/gif_extractor.c
index 405eebe..3b202b5 100644
--- a/src/plugins/gif_extractor.c
+++ b/src/plugins/gif_extractor.c
@@ -36,7 +36,7 @@
36 * @return -1 on error, otherwise number of bytes read 36 * @return -1 on error, otherwise number of bytes read
37 */ 37 */
38static int 38static int
39gif_read_func (GifFileType *ft, 39gif_READ_func (GifFileType *ft,
40 GifByteType *bt, 40 GifByteType *bt,
41 int arg) 41 int arg)
42{ 42{
@@ -68,13 +68,13 @@ EXTRACTOR_gif_extract_method (struct EXTRACTOR_ExtractContext *ec)
68 int et; 68 int et;
69 char dims[128]; 69 char dims[128];
70#if defined (GIF_LIB_VERSION) || GIFLIB_MAJOR <= 4 70#if defined (GIF_LIB_VERSION) || GIFLIB_MAJOR <= 4
71 if (NULL == (gif_file = DGifOpen (ec, &gif_read_func))) 71 if (NULL == (gif_file = DGifOpen (ec, &gif_READ_func)))
72 return; /* not a GIF */ 72 return; /* not a GIF */
73#else 73#else
74 int gif_error; 74 int gif_error;
75 75
76 gif_error = 0; 76 gif_error = 0;
77 gif_file = DGifOpen (ec, &gif_read_func, &gif_error); 77 gif_file = DGifOpen (ec, &gif_READ_func, &gif_error);
78 if ((gif_file == NULL) || (gif_error != 0)) 78 if ((gif_file == NULL) || (gif_error != 0))
79 { 79 {
80 if (gif_file != NULL) 80 if (gif_file != NULL)
diff --git a/src/plugins/old/ebml_extractor.c b/src/plugins/old/ebml_extractor.c
index f7daa9a..0d4fc91 100644
--- a/src/plugins/old/ebml_extractor.c
+++ b/src/plugins/old/ebml_extractor.c
@@ -734,7 +734,7 @@ struct ebml_state
734 int reported_ebml; 734 int reported_ebml;
735 int valid_ebml; 735 int valid_ebml;
736 uint64_t ebml_version; 736 uint64_t ebml_version;
737 uint64_t ebml_read_version; 737 uint64_t ebml_READ_version;
738 uint64_t ebml_max_id_length; 738 uint64_t ebml_max_id_length;
739 uint64_t ebml_max_size_length; 739 uint64_t ebml_max_size_length;
740 char *doctype; 740 char *doctype;
@@ -796,7 +796,7 @@ clean_ebml_state_ebml (struct ebml_state *state)
796 state->reported_ebml = 0; 796 state->reported_ebml = 0;
797 state->valid_ebml = 0; 797 state->valid_ebml = 0;
798 state->ebml_version = 1; 798 state->ebml_version = 1;
799 state->ebml_read_version = 1; 799 state->ebml_READ_version = 1;
800 state->ebml_max_id_length = 4; 800 state->ebml_max_id_length = 4;
801 state->ebml_max_size_length = 8; 801 state->ebml_max_size_length = 8;
802 state->doctype = NULL; 802 state->doctype = NULL;
@@ -1699,7 +1699,7 @@ EXTRACTOR_ebml_extract_method (struct EXTRACTOR_PluginList *plugin,
1699 state->ebml_version = uint_value; 1699 state->ebml_version = uint_value;
1700 break; 1700 break;
1701 case EBMLID_READ_VERSION: 1701 case EBMLID_READ_VERSION:
1702 state->ebml_read_version = uint_value; 1702 state->ebml_READ_version = uint_value;
1703 if (uint_value > 1) 1703 if (uint_value > 1)
1704 { 1704 {
1705 /* We don't support EBML versions > 1 */ 1705 /* We don't support EBML versions > 1 */
diff --git a/src/plugins/rpm_extractor.c b/src/plugins/rpm_extractor.c
index 90c5892..248217a 100644
--- a/src/plugins/rpm_extractor.c
+++ b/src/plugins/rpm_extractor.c
@@ -106,7 +106,7 @@ pipe_feeder (void *args)
106 while ( (0 == p->shutdown) && 106 while ( (0 == p->shutdown) &&
107 (done < rret) ) 107 (done < rret) )
108 { 108 {
109 if (-1 == (wret = WRITE (p->pi[1], 109 if (-1 == (wret = write (p->pi[1],
110 &buf[done], 110 &buf[done],
111 rret - done))) 111 rret - done)))
112 { 112 {
@@ -119,7 +119,7 @@ pipe_feeder (void *args)
119 if (done != rret) 119 if (done != rret)
120 break; 120 break;
121 } 121 }
122 CLOSE (p->pi[1]); 122 close (p->pi[1]);
123 return NULL; 123 return NULL;
124} 124}
125 125
@@ -272,8 +272,8 @@ EXTRACTOR_rpm_extract_method (struct EXTRACTOR_ExtractContext *ec)
272 return; 272 return;
273 if (0 != pthread_mutex_init (&parg.lock, NULL)) 273 if (0 != pthread_mutex_init (&parg.lock, NULL))
274 { 274 {
275 CLOSE (parg.pi[0]); 275 close (parg.pi[0]);
276 CLOSE (parg.pi[1]); 276 close (parg.pi[1]);
277 return; 277 return;
278 } 278 }
279 if (0 != pthread_create (&pthr, 279 if (0 != pthread_create (&pthr,
@@ -282,8 +282,8 @@ EXTRACTOR_rpm_extract_method (struct EXTRACTOR_ExtractContext *ec)
282 &parg)) 282 &parg))
283 { 283 {
284 pthread_mutex_destroy (&parg.lock); 284 pthread_mutex_destroy (&parg.lock);
285 CLOSE (parg.pi[0]); 285 close (parg.pi[0]);
286 CLOSE (parg.pi[1]); 286 close (parg.pi[1]);
287 return; 287 return;
288 } 288 }
289 rpmlogSetCallback (&discard_log_callback, NULL); 289 rpmlogSetCallback (&discard_log_callback, NULL);
@@ -416,7 +416,7 @@ END:
416 sig.sa_handler = SIG_IGN; 416 sig.sa_handler = SIG_IGN;
417 sigaction (SIGALRM, &sig, &old); 417 sigaction (SIGALRM, &sig, &old);
418 parg.shutdown = 1; 418 parg.shutdown = 1;
419 CLOSE (parg.pi[0]); 419 close (parg.pi[0]);
420 Fclose (fdi); 420 Fclose (fdi);
421 pthread_kill (pthr, SIGALRM); 421 pthread_kill (pthr, SIGALRM);
422 pthread_join (pthr, &unused); 422 pthread_join (pthr, &unused);