Revision history for Perl extension Text::VCardFast.

0.13  2026-12-06
	- security: cap BEGIN nesting in the parser (max_depth, default 64,
	  at most 1000).  The C parser recurses once per BEGIN, so deeply
	  nested input overflowed the stack and killed the process.
	- security: hash2vcard output can no longer be broken out of by the
	  data: backslashes in parameter values are escaped, control
	  characters are dropped from values, names that can't be read back
	  as themselves make it croak, and folding never indents a property
	  line (it also counts octets now: at most 75 per line, the leading
	  space included).  It also escapes the card type, and writes a
	  group named "0".
	- return an "Out of memory" error instead of crashing when an
	  allocation fails
	- double the parse buffer as it grows (it grew 1 KB at a time, so
	  long values were copied quadratically)
	- free the multival and multiparam lists after every parse (leaked)
	- don't leak the top-level property hash, or properties outside any
	  component (still dropped from the result, as before)
	- don't crash on a multival/multiparam option that is not an array
	  ref, or is a sparse array
	- barekeys now works in the C parser as documented: {home => [undef]},
	  and hash2vcard writes such bare parameters instead of dropping them
	- with character input, the C parser files a non-ASCII property or
	  parameter name under a character key, matching its name (it used
	  the raw bytes)
	- drop NUL bytes before parsing; the C parser used to stop at one
	- refuse a group on BEGIN or END (g.BEGIN:X)
	- drop CRs before parsing; skip every folded line before an escaped
	  character; don't let a group prefix run a name onto the next line
	- pure-Perl parser rewritten to read the same grammar as the C one
	  (it also stopped at the first empty line); t/Consistency.t checks
	  that the two agree, including on random input.  So vcard2hash_pp
	  now dies on what the C parser refuses (a line with no colon,
	  a.b.NAME, a lone trailing backslash), returns {} rather than undef
	  for input with no components, and lowercases ASCII letters only.
	  It does more work than the old one, and is up to about 2x slower
	  (about the same on ordinary cards); vcard2hash uses the C parser.
	- max_depth: 0, negative or non-numeric values mean the default in
	  both parsers, and huge values no longer wrap in the C parser
	- the POD describes the output, errors, input cleaning and what
	  hash2vcard refuses, drops and folds
	- regenerate ppport.h (3.19 to 3.73), so clang builds without warnings
	- ship the cr test case, missing from MANIFEST

0.12  2026-08-31
	- clarify licensing: same terms as Perl itself (Artistic License 1.0
	  or GPL version 1 or later)
	- include a LICENSE file in the distribution
	- add LICENSE => Perl_5 to Makefile.PL (metadata previously said
	  "unknown")
	- align README copyright holder with the module POD

0.11  2016-11-21
	- don't override CFLAGS

0.10  2016-11-21
	- move bench.pl into a sub directory so it doesn't install
	- handle files with only \r and no \n for line endings

0.09  2016-11-11
	- remove test/cases from MANIFEST file

0.08  2016-06-26
	- check that we have an open card before strcasecmping the type

0.07  2016-04-27
	- use strcmpsafe rather than strcmp in multivalue handling

0.06  2014-07-29
	- add 'only_one' option to stop parsing after the first card
	  (avoids breaking on trailing disclaimers)

0.05  2014-07-28
	- require JSON::XS so tests don't fail on platforms without it
	- update README

0.04  2014-06-28
	- hash2vcard - don't modify input hash while generating output
	- handle \n split over a line wrap, i.e. "line 1\\\n nline2"
	  becomes "line 1\nline2"

0.03  2014-02-13
	- breaking API change: params are a hash, not a hashref
	- checks is_utf8 flag and passes it down, so output is only UTF8
	  if the input was.  This should allow arbitrary encodings to work.
	- add documentation
	- faster buffer implementation (taken from recent Cyrus optimisation)

0.02  2014-01-10
	- group support for VCard - entry name foo.bar will have
	  name "bar" and group "foo".
	- multival key 'values' rather than 'value'

0.01  2014-01-08
	- original version; created by h2xs 1.23 with options
		-A -n Text::VCardFast

