Martin Dindoffer
b1eadaee6c
Fix intege overflow in _setBooleanElement in a primitive list
2022-08-08 16:28:52 +01:00
Martin Dindoffer
89d1c5722e
Fix integer overflow in computeSerializedSizeInWords
2022-08-08 16:28:52 +01:00
Martin Dindoffer
e77372b1cd
Fix integer overflow in bounds checking
2022-08-08 16:28:52 +01:00
Vaci Koblizek
949103ca5d
Merge remote-tracking branch 'sandstorm/master'
2022-05-02 17:18:21 +01:00
Martin Dindoffer
89db62ae9a
#122 Add bound checks for struct size
...
Also fix incorrect bounds comparison in SegmentReader
2022-04-09 10:36:07 -04:00
Vaci Koblizek
9a32482541
Merge remote-tracking branch 'sandstorm/master' into vaci/merge2
2021-11-10 11:15:53 +00:00
David Renshaw
ab303cbc28
add more robustness to integer wrapping problems
2021-10-08 14:24:22 -04:00
David Renshaw
57dec34d2c
fix bug in short to int conversion in StructPointer
2021-10-05 17:03:57 -04:00
David Renshaw
ddd43a491b
throw exception on negative segment sizes
2021-10-01 21:56:49 -04:00
Vaci Koblizek
b24a362d58
Merge from upstream
2021-08-19 09:50:28 +01: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
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
Vaci Koblizek
e3d52a0bbd
use gather writes for AsynchronousSocketChannels
2020-11-26 14:22:13 +00:00
Vaci Koblizek
9e6d495d56
add runtime-rpc module and refactor project
2020-11-08 17:24:42 +00:00
Vaci Koblizek
66fc361386
stub out two-party test suite for now
2020-11-07 15:58:39 +00:00
Vaci Koblizek
0ce52fe135
add resolve test and fix handleResolve bugs
2020-11-06 15:32:20 +00:00
Vaci Koblizek
7d2e541603
fix getNetwork bug, remove unnecessary TwoPartVatNetwork specialisation
2020-11-06 13:58:36 +00:00
Vaci Koblizek
1f004779d4
rpc tests
2020-11-05 21:38:43 +00:00
Vaci Koblizek
054213a0ac
add rpc bootstrap factory
2020-11-05 21:38:43 +00:00
Vaci Koblizek
630d71d4e5
implement more capability tests
2020-11-05 17:59:05 +00:00
Vaci Koblizek
8565c40c14
capability test suite
2020-11-05 17:59:05 +00:00
Vaci Koblizek
2d8fe31a59
generic interface generation (WIP
2020-11-05 17:59:05 +00:00
Vaci Koblizek
d6a163990e
fix RpcState tests
2020-11-05 17:59:05 +00:00
Vaci Koblizek
9315c8aaba
null cap test
2020-10-22 15:55:11 +01:00
Vaci Koblizek
83a4d4dc9e
only tap incoming
2020-10-22 15:55:11 +01:00
Vaci Koblizek
c01228c31c
add tap for dumping rpc messages
2020-10-22 15:55:11 +01:00
Vaci Koblizek
730ca1abf5
question cleanup
2020-10-22 15:55:11 +01:00
Vaci Koblizek
89451874c3
simplify server runOnce
2020-10-22 15:55:11 +01:00
Vaci Koblizek
dea4d2d3c0
implement bulk of pipelining logic
2020-10-22 15:55:11 +01:00
Vaci Koblizek
606dd26d48
generate pipelines, add AnyPointer.Pipeline
2020-10-22 15:55:11 +01:00
Vaci Koblizek
59977b53fe
generate client methods and add streaming
2020-10-22 15:55:11 +01:00
Vaci Koblizek
218529deae
add client factory for AnyPointer accessor
2020-10-22 15:55:11 +01:00
Vaci Koblizek
be64ced181
demo schema with interfaces
2020-10-22 15:55:11 +01:00
Vaci Koblizek
c938938808
CapTables everywhere!
...
Imbue readers and writers with capTables.
Ensure caps are removed when pointers are zeroed out.
2020-10-22 15:55:11 +01:00
Vaci Koblizek
4a77f67819
twoparty rpc
2020-10-22 15:55:10 +01:00
Vaci Koblizek
15b83a9c05
implement local, queued and promised hooks
2020-10-22 15:55:10 +01:00
Vaci Koblizek
b3c5b030c5
handle bootstrapping request
2020-10-22 15:55:10 +01:00
Vaci Koblizek
66ae27e805
mock rpc connection
2020-10-22 15:55:10 +01:00
Vaci Koblizek
7ee0a60b5e
stub handlers and test cases for incoming rpc messages
2020-10-22 15:55:10 +01:00
Vaci Koblizek
86dfbd123d
Serialization to and from AsynchronousByteChannel
2020-10-22 15:55:10 +01:00
David Renshaw
79ffb37b4c
sbt -> maven, scalatest -> junit
2020-05-12 20:17:47 -04:00
David Renshaw
25d40d3c79
switch to scalatest
2014-05-24 22:41:36 -04:00
David Renshaw
67df707a6f
fix bug in getBoolField
2014-05-24 22:21:41 -04:00
David Renshaw
adfa3cf29d
primitive tests
2014-05-24 22:03:39 -04:00
David Renshaw
ba0c18000a
add a test
2014-05-24 21:39:59 -04:00