Commit Graph

51 Commits

Author SHA1 Message Date
Kirill Simonov d1003a9d40 Fixed heap overflow in yaml_parser_scan_uri_escapes (Thanks Ivan Fratric of the Google Security Team). 2014-03-26 07:03:17 -05:00
Kirill Simonov 303b4558ef Manually define PTRDIFF_MAX for VS C compiler. 2014-02-03 21:41:19 -06:00
Kirill Simonov 1ef1171721 Forgot to set the error state. 2014-02-03 00:44:03 -06:00
Kirill Simonov c9479c77ed Limit input size to SIZE_MAX/2. 2014-02-03 00:26:46 -06:00
Kirill Simonov c201bf64fa Guard against overflows in indent and flow_level. 2014-02-02 23:41:44 -06:00
Kirill Simonov 2d94fc5002 Prevent node index overflow (Reported by Florian Weimer). 2014-02-02 20:53:10 -06:00
Kirill Simonov f56726b996 Fixed invalid size_t->int cast (Thank to Florian Weimer). 2014-01-12 21:44:24 -06:00
Kirill Simonov 3b160b6028 Fixed pointer arithmetic overflow when calculating the position of a potential simple key (#156, thank to ppelletier(at)oblong(dot)com). 2010-10-11 06:41:03 +00:00
Kirill Simonov bbaaf49bc4 Fixed a bug which prevented an empty mapping from being used as a simple key (#150, thank to spitzak(at)rhythm(dot)com). 2010-10-11 06:29:07 +00:00
Kirill Simonov 1893dabd78 Do not update the raw buffer when not necessary (fixes #123). 2009-08-29 21:26:11 +00:00
Kirill Simonov 252c575a5c Fixed non-ANSI initializations (fixes #115). 2009-02-23 19:59:19 +00:00
Kirill Simonov c70abc4d0d Always use lower case in error messages. 2008-12-28 20:46:22 +00:00
Kirill Simonov 561ca6de7b Fixed emitting folded scalars with trailing breaks; Forced emitting of a document end indicator when there is a possibility of ambiguous parsing. 2008-12-27 19:14:00 +00:00
Kirill Simonov 40cc5d1517 Rewritten whitespace detection in the scalar analyzer and block scalar writers (ported from PyYAML). 2008-12-27 12:14:54 +00:00
Kirill Simonov 6be8109b82 Fixed grammar in error messages (from YAML::XS::LibYAML). 2008-07-31 20:41:02 +00:00
Kirill Simonov 5e52c31904 Fixed a problem when the DOCUMENT-END event is not emitted until the beginning of the next document is available. Fixed #51. Thanks edward(at)sweetbytes.net for the bug report. 2007-04-17 17:39:54 +00:00
Kirill Simonov c9b74def08 Eliminate some warnings and add more doxygen definitions. 2007-01-08 18:33:55 +00:00
Kirill Simonov 071329aef5 Fix a bug in the emitter introduced while fixing warnings for VC6. 2007-01-08 12:27:08 +00:00
Kirill Simonov 0174ed6e0a Add win32 fixes and project files for VC6. 2007-01-07 22:51:10 +00:00
Kirill Simonov e27a3c886e Add functions for constructing, parsing and emitting YAML documents. 2007-01-07 20:11:16 +00:00
Kirill Simonov a907bf857a Add const qualifier for yaml_parser_set_input_string parameter input. 2006-12-11 19:33:21 +00:00
Kirill Simonov c83b67a678 Force a new line at the end of the input stream even if there are no a new line character. This fixes a nasty bug when libyaml hangs on documents like [[[[. Thanks ciaranm for reporting the bug. 2006-12-11 19:20:29 +00:00
Kirill Simonov 2a02dfd262 Add two examples and prepare the build system for distribution. 2006-07-31 22:24:32 +00:00
Kirill Simonov 6d1672817d Fix Emitter bugs and leaks. 2006-07-30 12:49:17 +00:00
Kirill Simonov 784340c2a7 Scalar writers are completed. 2006-07-29 22:10:26 +00:00
Kirill Simonov e35af832e9 Implement everything except tag and scalar writers. 2006-07-28 20:09:34 +00:00
Kirill Simonov 5a00d8fe66 Implement Emitter state machine. 2006-07-26 20:32:16 +00:00
Kirill Simonov cf61616657 Add yaml_emitter_emit_* set of functions. 2006-07-25 20:54:28 +00:00
Kirill Simonov b1a54000b5 Add Emitter definitions and implement the Writer. 2006-07-23 11:57:36 +00:00
Kirill Simonov 54815ffd34 Fix some leaks, segfaults and warnings. 2006-07-21 18:29:00 +00:00
Kirill Simonov 625fcfe9ed Refactor internal and external API. 2006-07-21 13:50:32 +00:00
Kirill Simonov ab01bac8b5 Complete the Parser (it requires refactoring though) and fix some bugs. 2006-07-07 19:34:25 +00:00
Kirill Simonov 52fba2c6b3 Implement half of the parsers. 2006-07-05 19:58:30 +00:00
Kirill Simonov 1eb01be7e2 Start working on the parser. 2006-07-04 19:39:56 +00:00
Kirill Simonov 5eff53a4ac Move yaml/yaml.h to yaml.h and merge version.c to api.c. 2006-07-03 13:49:14 +00:00
Kirill Simonov 26687d7db8 Add event constructors and destructors. 2006-07-03 13:34:57 +00:00
Kirill Simonov 7e32c19413 Fix numerous bugs in the Scanner. 2006-06-19 20:27:22 +00:00
Kirill Simonov 21fbedd415 The scanner is completed (not tested though). 2006-06-18 17:20:25 +00:00
Kirill Simonov 92d41fe103 Implement the block scalar scanner. 2006-06-16 20:42:55 +00:00
Kirill Simonov e71095e3bf Implement scanners for directives, anchors, and tags. 2006-06-11 17:29:09 +00:00
Kirill Simonov eb9cceb5aa Scanner: implement everything except token scanners. 2006-06-08 21:37:10 +00:00
Kirill Simonov f2b59d4db0 Implementing Scanner: macros and high-level functions. 2006-06-07 20:30:22 +00:00
Kirill Simonov 03be97ab0c Add scanner definitions.
Add a basic description of all tokens produced by the scanner.
2006-06-06 19:43:34 +00:00
Kirill Simonov f642fd1158 Add token constructors and destructors.
Add YAML_DECLARE to the API declarations (Thanks to Peter Murphy for suggestion).
2006-06-02 13:03:14 +00:00
Kirill Simonov 2fa16060e0 Complete buffering and encoding code. 2006-06-01 20:19:43 +00:00
Kirill Simonov 3d790dfd5e Complete UTF-8 and UTF-16 decoders.
Reader is mostly done (though untested).
2006-05-30 17:49:18 +00:00
Kirill Simonov 6eb1ded4c4 Working on the decoding code. 2006-05-29 20:08:09 +00:00
Kirill Simonov 95b98ba9b5 Implementing Reader: first tries. 2006-05-27 17:19:07 +00:00
Kirill Simonov a51447c932 Doxygenify the header file.
Add basic reader fields to the parser structure.

Start implementing basic parser functions.
2006-05-26 21:46:47 +00:00
Kirill Simonov 721c1923e4 Add doxygen support. 2006-05-21 14:58:32 +00:00