Commit graph

395 commits

Author SHA1 Message Date
Vaci Koblizek
9bb1032274 avoid truncating struct size 2021-11-10 12:13:27 +00:00
Vaci Koblizek
9a32482541 Merge remote-tracking branch 'sandstorm/master' into vaci/merge2 2021-11-10 11:15:53 +00: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
Vaci Koblizek
4fc6ffdce5 try fixing jdk version to 11 2021-08-19 10:05:52 +01:00
Vaci Koblizek
b24a362d58 Merge from upstream 2021-08-19 09:50:28 +01: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
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
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
Vaci Koblizek
950ba824b9 use java11 switches and completablefutures 2021-04-05 11:05:52 +01:00
Vaci Koblizek
1bf1228756 revert to java version 11 2021-04-05 11:05:52 +01:00
Vaci Koblizek
22e5ab34a9 Merge remote-tracking branch 'sandstorm/master' 2020-12-07 19:35:51 +00:00
Vaci Koblizek
c7621d1de3 whenMoreResolved should return null when resolved 2020-12-07 18:55:54 +00:00
David Renshaw
cf62cd4a58 Fix build on Fedora 33 2020-12-06 20:47:53 -05:00
Vaci Koblizek
21d3eba0e5 remove CompletableFutureWrapper 2020-12-05 14:55:28 +00:00
Vaci Koblizek
25c50b105d moar capTable context maintenance 2020-12-03 15:06:35 +00:00
Vaci Koblizek
196b82515c ensure StructBuilders and StructLists maintain capTable context 2020-12-03 14:25:15 +00:00
Vaci Koblizek
f74ad80dea remove cancellation completion for now 2020-12-03 14:25:15 +00:00
Vaci Koblizek
53eeed97e2 make direct call if QueuedClient has resolved 2020-12-01 17:12:49 +00:00
Vaci Koblizek
3b1f5f416c use lists for queued calls, clean up on resolution 2020-12-01 17:08:27 +00:00
Vaci Koblizek
837f1b324c add AnyList 2020-11-30 20:22:36 +00:00
Vaci Koblizek
2b5bf0eb21 tidy up branding and implement QueuedClient,getBrand() correctly 2020-11-30 18:52:28 +00:00
Vaci Koblizek
c04bdb8088 add clienthook commentary 2020-11-30 18:42:04 +00:00
Vaci Koblizek
d02e460f06 tidy up response and pipeline construction 2020-11-30 17:47:37 +00:00