mirror of
https://github.com/moparisthebest/curl
synced 2024-11-13 13:05:03 -05:00
4520534e6d
- Add unit test 1604 to test the sanitize_file_name function.
- Use -DCURL_STATICLIB when building libcurltool for unit testing.
- Better detection of reserved DOS device names.
- New flags to modify sanitize behavior:
SANITIZE_ALLOW_COLONS: Allow colons
SANITIZE_ALLOW_PATH: Allow path separators and colons
SANITIZE_ALLOW_RESERVED: Allow reserved device names
SANITIZE_ALLOW_TRUNCATE: Allow truncating a long filename
- Restore sanitization of banned characters from user-specified outfile.
Prior to this commit sanitization of a user-specified outfile was
temporarily disabled in 2b6dadc
because there was no way to allow path
separators and colons through while replacing other banned characters.
Now in such a case we call the sanitize function with
SANITIZE_ALLOW_PATH which allows path separators and colons to pass
through.
Closes https://github.com/curl/curl/issues/624
Reported-by: Octavio Schroeder
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# these files are used in every single unit test program
|
|
|
|
UNITFILES = curlcheck.h \
|
|
../libtest/test.h \
|
|
../libtest/first.c
|
|
|
|
# These are all unit test programs
|
|
UNITPROGS = unit1300 unit1301 unit1302 unit1303 unit1304 unit1305 unit1307 \
|
|
unit1308 unit1309 unit1330 unit1394 unit1395 unit1396 unit1397 unit1398 \
|
|
unit1600 unit1601 unit1602 unit1603 unit1604
|
|
|
|
unit1300_SOURCES = unit1300.c $(UNITFILES)
|
|
unit1300_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1301_SOURCES = unit1301.c $(UNITFILES)
|
|
unit1301_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1302_SOURCES = unit1302.c $(UNITFILES)
|
|
unit1302_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1303_SOURCES = unit1303.c $(UNITFILES)
|
|
unit1303_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1304_SOURCES = unit1304.c $(UNITFILES)
|
|
unit1304_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1305_SOURCES = unit1305.c $(UNITFILES)
|
|
unit1305_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1307_SOURCES = unit1307.c $(UNITFILES)
|
|
unit1307_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1308_SOURCES = unit1308.c $(UNITFILES)
|
|
unit1308_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1309_SOURCES = unit1309.c $(UNITFILES)
|
|
unit1309_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1330_SOURCES = unit1330.c $(UNITFILES)
|
|
unit1330_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1394_SOURCES = unit1394.c $(UNITFILES)
|
|
unit1394_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMETALINK_CPPFLAGS)
|
|
unit1394_LDADD = @LIBMETALINK_LIBS@ $(top_builddir)/lib/libcurl.la @LIBCURL_LIBS@
|
|
unit1394_LDFLAGS = @LIBMETALINK_LDFLAGS@ $(top_builddir)/src/libcurltool.la
|
|
unit1394_LIBS =
|
|
|
|
unit1395_SOURCES = unit1395.c $(UNITFILES)
|
|
unit1395_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1396_SOURCES = unit1396.c $(UNITFILES)
|
|
unit1396_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1397_SOURCES = unit1397.c $(UNITFILES)
|
|
unit1397_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1398_SOURCES = unit1398.c $(UNITFILES)
|
|
unit1398_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1600_SOURCES = unit1600.c $(UNITFILES)
|
|
unit1600_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1601_SOURCES = unit1601.c $(UNITFILES)
|
|
unit1601_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1602_SOURCES = unit1602.c $(UNITFILES)
|
|
unit1602_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1603_SOURCES = unit1603.c $(UNITFILES)
|
|
unit1603_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
unit1604_SOURCES = unit1604.c $(UNITFILES)
|
|
unit1604_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMETALINK_CPPFLAGS)
|
|
|