Skip to content

Commit f39cc4d

Browse files
author
jessekornblum
committed
Experimenting with CSV file format
git-svn-id: https://svn.code.sf.net/p/ssdeep/code/trunk@104 d1b3761f-3242-0410-b1a5-fe525d664610
1 parent 30f2b3e commit f39cc4d

File tree

15 files changed

+1826
-9178
lines changed

15 files changed

+1826
-9178
lines changed

ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2010-07-15 Jesse Kornblum
2+
3+
* Added quotes and quote escaping to filenames when
4+
displayed in CSV matching mode.
5+
6+
* Modified FILEFORMAT to reflect quotation marks in filenames.
7+
8+
9+
2010-06-24 Jesse Kornblum
10+
11+
* Added parameter checking to my_basename.
12+
13+
114
2010-05-05 Jesse Kornblum
215

316
* Changed logic for reading files of known hashes to look for

FILEFORMAT

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
11

2-
SSDEEP FILE FORMAT VERSION 1.0
2+
SSDEEP FILE FORMAT VERSION 1.1
33

44
1. REVISION HISTORY
55

66
14 Aug 2006 - Initial version (jk)
7-
7+
15 Jul 2010 - Adding quotation marks to filenames
88

99

1010

1111
2. FILE HEADER
1212

1313
The first line of the file is a header, like this:
1414

15-
ssdeep,1.0--blocksize:hash:hash,filename
15+
ssdeep,1.1--blocksize:hash:hash,filename
1616

1717
ssdeep - Identifies the file type
18-
1.0 - The version of the file format, NOT the version of the program
18+
1.1 - The version of the file format, NOT the version of the program
1919
-- - Separator
2020

2121
The remainder of the line identifies the format of the file.
22-
Note that for version 1.0 these values must be given EXACTLY as shown above
22+
Note that for version 1.1 these values must be given EXACTLY as shown above
2323

2424

2525
3. FILE DATA
2626

2727
Each line represents the hash of one file as listed in the header.
2828
Specifically, we have the blocksize used by the program, the hash
29-
for this blocksize and twice the blocksize, and the filename. Note that
30-
there are *no* quotation marks in the file.
29+
for this blocksize and twice the blocksize, and the filename. Filenames
30+
are enclosed in quotation marks. Filenames which contain a quotation mark
31+
will have those quotes slash escaped. For example, the file ma"in.c
32+
will be listed as:
33+
34+
"ma\"in.c"
35+
36+

Makefile.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
4444
ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
4545
install-sh ltmain.sh missing
4646
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
47-
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
47+
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
48+
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
49+
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
50+
$(top_srcdir)/configure.ac
4851
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4952
$(ACLOCAL_M4)
5053
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
@@ -219,7 +222,6 @@ libdir = @libdir@
219222
libexecdir = @libexecdir@
220223
localedir = @localedir@
221224
localstatedir = @localstatedir@
222-
lt_ECHO = @lt_ECHO@
223225
mandir = @mandir@
224226
mkdir_p = @mkdir_p@
225227
oldincludedir = @oldincludedir@

NEWS

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
** Version 2.6 - RBF DATE
2+
3+
* New Features
4+
5+
- Modified the output file format to allow for proper escaping of
6+
filenames with quotation marks in them.
7+
8+
* Bug Fixes
9+
10+
- Added quotation marks to filenames in CSV matching mode.
11+
12+
113
** Version 2.5 - 6 May 2010
214

315
* New Features

0 commit comments

Comments
 (0)