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
David Renshaw
703449e966
invoke 'make' from maven
2020-05-13 17:45:24 -04:00
David Renshaw
7da9686191
fix comparisons of different enum types
2020-05-13 17:19:55 -04:00
David Renshaw
4cc34896b4
add StructList.newFactory method, allowing type parameters to be inferred
2020-05-12 23:29:16 -04:00
David Renshaw
29cf713fa5
set -e in do_benchmarks.bash
2020-05-12 23:04:06 -04:00
David Renshaw
f98f187538
bump version numbers
2020-05-12 23:03:41 -04:00
David Renshaw
877615f3b3
update release process notes
2020-05-12 22:56:00 -04:00
David Renshaw
74b645217f
configure publishing to the Central Repository, and publish version 0.1.5
2020-05-12 22:41:15 -04:00
David Renshaw
94d15d7720
fix problems found by -Xlink:unchecked
2020-05-12 20:41:36 -04:00
David Renshaw
e89dfd9f74
Merge pull request #84 from capnproto/maven
...
sbt -> maven, scalatest -> junit
2020-05-12 20:31:20 -04:00
David Renshaw
79ffb37b4c
sbt -> maven, scalatest -> junit
2020-05-12 20:17:47 -04:00
David Renshaw
0e99996372
Throw exception on 0-byte read.
2020-05-08 09:09:18 -04:00
Yann Massard
a16a8b517c
#78 improve exception handling
2020-04-29 07:42:51 -04:00
Alexander Böhn
37d067797a
Bump the C++ standard flag up to -c++14
...
… the current version of `kj` requires C++14 at a minimum; this change keeps the build of `capnpc-java` from erroring out.
2020-03-03 22:06:06 -05:00
David Renshaw
4f514ad1a0
drop openjdk7 (after seeing it segfault on travis)
2019-08-18 12:23:52 -04:00
David Renshaw
1ff258d090
Build with c++14. Upgrade capnproto-c++ to 0.7.0 in travis config.
2019-08-18 12:06:33 -04:00
David Renshaw
debd250ddc
prepare for v0.1.4 release
2019-05-27 09:05:23 -04:00
David Renshaw
09eec64941
make Allocator public
2019-05-20 18:12:19 -04:00
David Renshaw
1d51317074
update benchmark to use scratch space if requested
2019-05-04 11:09:07 -04:00
David Renshaw
f00f02de77
make DefaultAllocator public and add a default constructor
2019-05-04 10:43:51 -04:00
David Renshaw
755114c1a3
implement scratch space reuse
2019-05-04 10:33:55 -04:00
David Renshaw
3c60400dae
make SUGGESTED_FIRST_SEGMENT_WORDS the default
2019-05-04 09:33:09 -04:00
David Renshaw
0ff0cfa338
support custom allocators for builder segments
2019-05-04 09:33:09 -04:00
David Renshaw
c6762ff0f7
implement StructList.Builder.setWithCaveats()
2019-03-23 10:32:01 -04:00
David Renshaw
45fd638c7c
add some @Override annotations
2019-03-16 08:49:10 -04:00
David Renshaw
d60177b5a9
don't test on oraclejdk8 anymore, as it is not longer supported
2019-03-12 20:29:30 -04:00
David Renshaw
6dcfa30e10
ArrayInputStream: return -1 on end-of-stream
2018-06-10 13:25:40 -04:00