Commit Graph

193 Commits

Author SHA1 Message Date
Moritz Bunkus
07d3436342 libebml_t.h: use C99 integer typedefs instead of the BSD ones
Patch by Ed Schouten <ed@nuxi.nl>.
2015-11-18 18:35:22 +01:00
Moritz Bunkus
bb8ad783b5 Merge pull request #13 from 0-wiz-0/master
Add cstdlib for free/malloc.
2015-10-25 10:57:28 +01:00
Thomas Klausner
a02741ef1d Add cstdlib for free/malloc.
Needed when compiling with clang/libc++.
2015-10-25 10:46:29 +01:00
Moritz Bunkus
580add661f Bump version number, add release message 2015-10-20 15:05:13 +02:00
Moritz Bunkus
88409e2a94 EbmlMaster: propagate upper level element after infinite sized one correctly
When the parser encountered a deeply nested element with an infinite
size then a following element of an upper level was not propagated
correctly. Instead the element with the infinite size was added into the
EBML element tree a second time resulting in memory access after freeing
it and multiple attempts to free the same memory address during
destruction.

Fixes the issue reported as Cisco TALOS-CAN-0037.
2015-10-20 14:54:55 +02:00
Moritz Bunkus
24e5cd7c66 EbmlElement: don't read beyond end of buffer when reading variable length integers 2015-10-20 14:54:55 +02:00
Moritz Bunkus
12b560adc2 EbmlMaster.cpp: unwrap huge if; fix indentation 2015-10-20 14:54:55 +02:00
Moritz Bunkus
ababb64e0c EbmlUnicodeString: don't read beyond end of string
The conversion from an UTF-8 encoded string into a wchar_t one was
reading from beyond the end of the source buffer if the length indicated
by a UTF-8 character's first byte exceeds the number of bytes actually
present afterwards.

Fixes the issue reported as Cisco TALOS-CAN-0036.
2015-10-20 14:54:55 +02:00
Moritz Bunkus
c161e600b3 Bump version number, add release message 2015-10-17 15:47:22 +02:00
Moritz Bunkus
04b34b0dbd Merge pull request #11 from Matroska-Org/eof-in-sizes
detect EOF when reading the element size
2015-08-21 21:01:15 +02:00
Moritz Bunkus
267b24fb9e Merge pull request #9 from Matroska-Org/winstore
code for Windows App Store do not have access to the ANSI calls used in Debug.cpp
2015-08-21 21:00:44 +02:00
Steve Lhomme
642c3c4e27 detect EOF when reading the element size, similar to when reading the element id 2015-08-21 15:42:12 +02:00
Steve Lhomme
a858efec74 code for Windows App Store do not have access to the ANSI calls used in Debug.cpp
so we disable debug for these targets
2015-06-15 09:45:17 +02:00
Steve Lhomme
8427995f27 Merge pull request #2 from RedDwarf69/master
Update licensing information (FSF address)
2015-06-12 07:41:18 +02:00
Moritz Bunkus
49750c62ca Merge pull request #6 from MediaArea/master
start README.md
2015-05-01 08:48:09 +02:00
Dave Rice
d0c8e6eb05 start README.md 2015-04-29 19:52:46 -04:00
Steve Lhomme
108f7fd5fe do not allow too big String sizes
the max value is the same as in EbmlBinary and is still generous
2015-02-23 11:27:17 +01:00
Moritz Bunkus
b1a4c9ac00 EbmlElement: don't catch exceptions when writing elements 2015-01-04 15:05:42 +01:00
Moritz Bunkus
38eee9f0d6 ChangeLog: add release message 2015-01-04 14:28:53 +01:00
Moritz Bunkus
b000c55fdc build system: autogen.sh not needed; »autoreconf -fi« suffices 2014-12-21 11:38:45 +01:00
Moritz Bunkus
7bb5523d4e ChangeLog: recode to UTF-8 2014-12-21 11:38:31 +01:00
Moritz Bunkus
3be9e9b1d9 ChangeLog: mention the pkg-config file 2014-12-21 10:51:12 +01:00
Moritz Bunkus
befb00d980 cosmetics: alignment 2014-12-21 10:18:12 +01:00
Moritz Bunkus
7b8b0a6271 ChangeLog: update with build system changes 2014-12-21 10:12:09 +01:00
Moritz Bunkus
e57411cfd2 build system: remove old build files 2014-12-21 10:11:03 +01:00
Moritz Bunkus
873839b802 build system: add new source/header files to Makefile.am 2014-12-21 10:08:16 +01:00
Moritz Bunkus
e88d787c32 build system: autogen.sh script for generating configure etc. 2014-12-21 10:06:04 +01:00
Moritz Bunkus
677da149f1 build system: bump version number 2014-12-21 09:58:52 +01:00
Moritz Bunkus
c170b5ba58 Merge remote-tracking branch 'jan-engelhardt/master' 2014-12-21 09:57:58 +01:00
Moritz Bunkus
8055be972c EbmlMaster::Read(): drop elements with unset values in SCOPE_FULL_DATA mode
This prevents elements that couldn't be read properly (e.g. due to
defective data) from being handed over to the calling code in at best
half initialized state. See https://trac.bunkus.org/ticket/1096
2014-12-20 17:30:06 +01:00
Moritz Bunkus
6ba868a49b MemReadIOCallback, SafeReadIOCallback: add new classes for safe (memory) reading
squash! EbmlMemoryStream: add new class for safe memory reading
2014-12-20 17:29:48 +01:00
Moritz Bunkus
ce72b9266a cosmetics: unify indentation 2014-12-19 14:40:44 +01:00
Moritz Bunkus
34554928aa cosmetics: use spaces instead of tab characters; remove trailing whitespace 2014-12-19 00:23:13 +01:00
Moritz Bunkus
dc9a431375 version: bump version to 1.3.1 2014-12-19 00:20:32 +01:00
Moritz Bunkus
7a347adc37 ChangeLog update 2014-12-19 00:20:32 +01:00
Moritz Bunkus
95ff31de88 EbmlMaster: don't try to skip data on elements with unknown sizes 2014-12-19 00:20:32 +01:00
Moritz Bunkus
ea8ea4ca99 EbmlMaster: don't try to get end position of an element with an unknown size
See https://trac.bunkus.org/ticket/1089
2014-12-19 00:20:32 +01:00
Jan Engelhardt
87532e8cab build: use automake as a build system
Also provide a convenient pkg-config file at the same time.
2014-08-10 11:23:09 +09:00
Moritz Bunkus
ef3f1430dd Merge pull request #3 from maksqwe/master
Some of the fixes and optimization
2014-05-12 20:02:47 +02:00
Moritz Bunkus
a366eaa89e Don't cause over-/underflow on certain platforms
On mingw 32bit this comparison gives a warning about always being
true, which can only be the case if one of the constant actually
over/underflows.
2013-12-07 13:32:22 +01:00
Moritz Bunkus
b0c4cb4701 Avoid compiler warning about possible use of uninitialized values 2013-10-19 12:25:30 +02:00
maksqwe
f0cf0dcbec fix indentation 2013-08-23 21:58:04 +03:00
maksqwe
af339a7a7a 1. "wcslen" function was called multiple times with "const wchar_t* Path"
2. fix mistake which led to undefined behavior "uint64(High<<32)" -> "uint64(High)<<32"
3. optimize std::vector<>::iterator's usage "iter++" -> "++iter". See preincrement and postincrement operator++()
2013-08-23 00:30:37 +03:00
Denis Charmet
0f99c2d712 Use (std::nothrow) with new when the code check for null pointer results. 2013-05-01 12:40:54 +02:00
Cristian Morales Vega
39ea616d5f Update licensing information
Substitute LICENSE.LGPL for the latest copy from http://www.gnu.org/. And update
the FSF address and links in all the file headers.
2013-04-14 12:07:13 +01:00
Moritz Bunkus
b71292464e Merge pull request #1 from RedDwarf69/master
Linux packaging
2013-04-06 01:20:52 -07:00
Cristian Morales Vega
71fbd5a521 Use Linux-style EOL for non Windows specific files 2013-04-06 08:53:50 +01:00
Cristian Morales Vega
302c8fb89d Fix typo 2013-04-06 08:49:35 +01:00
Cristian Morales Vega
6efcb74d1e Add DESTDIR option to Linux Makefile 2013-04-06 08:48:34 +01:00
Cristian Morales Vega
ae0d773e15 Add "link" option to Linux Makefile 2013-04-06 08:45:14 +01:00