Commit graph

507 commits

Author SHA1 Message Date
Florian Schmaus
8aa4aaae16 Makefile: respect CFLAGS and LDFLAGS 2021-12-20 17:33:22 -05:00
Martin Dindoffer
2f7ce185bb Add advisories for recently found vulnearbilities 2021-10-11 11:08:50 -04:00
David Renshaw
0eb4abed7a bump to 0.1.14-SNAPSHOT 2021-10-11 11:06:05 -04:00
David Renshaw
3474af3973 prepare for v0.1.13 release 2021-10-11 10:57:32 -04:00
David Renshaw
ab303cbc28 add more robustness to integer wrapping problems 2021-10-08 14:24:22 -04:00
David Renshaw
059252cba5 bump to v0.1.13-SNAPSHOT 2021-10-05 17:17:15 -04:00
David Renshaw
335f56f73b prepare for v0.1.12 release 2021-10-05 17:07:23 -04:00
David Renshaw
57dec34d2c fix bug in short to int conversion in StructPointer 2021-10-05 17:03:57 -04:00
David Renshaw
c1cb55e277 bump to v0.1.12-SNAPSHOST 2021-10-01 22:16:17 -04:00
David Renshaw
2efe917ffc prepare for v0.1.11 release 2021-10-01 22:03:53 -04:00
David Renshaw
8f5f200858 verify that a list pointer has the correct kind 2021-10-01 21:59:52 -04:00
David Renshaw
104fb11104 add bounds checking in readListPointer 2021-10-01 21:59:21 -04:00
David Renshaw
ddd43a491b throw exception on negative segment sizes 2021-10-01 21:56:49 -04:00
David Renshaw
f3e66a6e0b update versions to 0.1.11-SNAPSHOT 2021-08-27 21:23:00 -04:00
David Renshaw
b1a197be75 prepare for 0.1.10 release 2021-08-27 21:13:49 -04:00
paxel
9e114cf26d
made runtime build for JDK8 under all JDKs (8++) (#109)
* Update pom.xml

made runtime build for JDK8 under all JDKs (8++)

* Update runtime/pom.xml

use more-standard syntax

Co-authored-by: David Renshaw <dwrenshaw@gmail.com>
2021-08-18 10:02:33 -04:00
Adam Jeliński
a36bf2e6bd
Makefile: Enable overriding pkg-config (#107)
Sometimes there's a need to precise which `pkg-config` is to be used.
Now `pkg-config`'s name or path can be overridden with `PKG_CONFIG`.

Fixes #106.
2021-08-18 08:12:21 -04:00
David Renshaw
cd3ef72166 add changelog 2021-07-16 14:20:29 -04:00
David Renshaw
1966572eca update version numbers to 0.1.10-SNAPSHOT 2021-07-16 11:38:03 -04:00
David Renshaw
80f5b0447a prepare for 0.1.9 release 2021-07-16 11:10:45 -04:00
David Renshaw
b8a5a99ef6
try adding maven.compiler.release flag (#104) 2021-07-14 15:41:56 -04:00
David Renshaw
f98e0fc6ef bump version to 0.1.9-SNAPSHOT 2021-05-31 08:45:24 -04:00
David Renshaw
01cf6c0ebf release v0.1.8 2021-05-31 08:33:52 -04:00
David Renshaw
a55b869305 implement MessageBuilder.unsafeConstructFromMessageReader() 2021-05-24 13:06:42 -04:00
David Renshaw
a078df7e4d add support for directly serializing a MessageReader
Previously, you would need to copy the message into a MessageBuilder first.
2021-05-24 11:49:20 -04:00
David Renshaw
d310db1e88 Prevent potential integer overflow in BuilderArena.allocate(). 2021-05-13 17:49:01 -04:00
David Renshaw
754184fd74 bump version numbers to 0.1.8-SNAPSHOT 2021-05-12 21:00:16 -04:00
David Renshaw
5bf2c368e3 0.1.7 release 2021-05-12 20:57:00 -04:00
David Renshaw
4ec14e39f9 be more careful about integer overflow in Serialize.read()
Previously, we were attempting to read the entire message
in one call to fillBuffer(). This was doomed to fail
if the message had more than Integer.MAX_VALUE bytes.

After this diff, we will call fillBuffer() separately for each
segment. This approach turns out to be simpler, too.
It might imply a small performance hit for messages with
many small segments, but such messages are discouraged anyway.

This diff also adds more overflow checking in the surrounding
logic.
2021-05-12 20:13:52 -04:00
David Renshaw
a6c5240790 bump version numbers to 0.1.7-SNAPSHOT 2021-05-11 21:49:54 -04:00
David Renshaw
ee7e9a0d07 publish 0.1.6 2021-05-11 21:46:25 -04:00
David Renshaw
8dbd5cf25f make new unit test less memory intensive 2021-05-11 21:12:10 -04:00
David Renshaw
eb73990798 fix potential overflow in DefaultAllocator
Fixes a bug where the allocator's `nextSize` variable could overflow
and become negative, causing more segments to be allocated than expected.

Also removes a duplicate `this.nextSize += size` statement that
likely made the problem worse.
2021-05-11 21:07:37 -04:00
David Renshaw
07e47d4104 add some documentation about the new 'no limit' option 2021-05-09 14:53:54 -04:00
David Renshaw
854997703d
Merge pull request #96 from wdu/master
Offer option to disable traversalLimitInWords
2021-05-09 14:47:02 -04:00
David Renshaw
9293ef5bf6 get things compiling again 2021-05-09 14:31:32 -04:00
Wim Dumon
cc4fa2bbc8 Offer option to disable traversalLimitInWords
Use case: large trusted input data file, mapped in memory by
MappedByteBuffer, which is often re-queried so a sensible
limit cannot be set.
2021-04-28 17:47:58 +02:00
David Renshaw
cf62cd4a58 Fix build on Fedora 33 2020-12-06 20:47:53 -05:00
David Renshaw
a081a37140 remove travis config
TravisCI is no longer free starting January 2021.
We will use Github Actions instead.
2020-12-04 17:15:16 -05:00
David Renshaw
ca355af0c4 add github actions config 2020-12-04 17:08:31 -05:00
David Renshaw
449bf8b2b2
Merge pull request #91 from vaci/copy-any-pointer
set AnyPointer from AnyPointer
2020-11-10 07:33:20 -05:00
Vaci Koblizek
91a93734e1 generalise AnyPointer setAs AnyPointer 2020-11-10 11:34:26 +00:00
Vaci Koblizek
f8cdfdea09 set AnyPointer from AnyPointer 2020-11-09 18:02:05 +00:00
dependabot[bot]
44a8c1e859 Bump junit from 4.12 to 4.13.1 in /compiler
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 18:21:11 -04:00
dependabot[bot]
9d06495851 Bump junit from 4.12 to 4.13.1 in /runtime
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 18:20:37 -04:00
Keith Rothman
ad460a4723 Allow CXX to be overriden via enviroment or Make variable.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-10-10 10:33:48 -04:00
David Renshaw
b60bc1e714
Merge pull request #86 from litghost/add_install_target
Add install target for capnp-java and the java.capnp include file.
2020-09-23 20:51:22 -04:00
Keith Rothman
e96448d3f5 Add install target for capnp-java and the java.capnp include file.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2020-09-23 17:00:15 -07:00
David Renshaw
322d195746 website updates 2020-07-14 20:57:58 -04:00
David Renshaw
880adcfe5e set sourceEncoding to UTF-8 2020-05-13 17:56:01 -04:00