nim-libp2p/libp2p
Etan Kissling 2373ee0061
harden `ecnist` byte export against uninitialized key (#671)
Currently, `ecnist`'s `toBytes` and `getBytes` methods operate only on
properly initialized keys. If an un-initialized key is given, an
`IndexError` may be raised if the key's `xlen` / `qlen` property is
larger than the maximum buffer size. This patch hardens those functions
to report a proper error in that case.
Note that the library functions called by `init` and `initRaw` already
reject data that does not have the expected length, so these new checks
should not be reachable in practice.
2021-12-13 18:46:25 +00:00
..
crypto harden `ecnist` byte export against uninitialized key (#671) 2021-12-13 18:46:25 +00:00
daemon Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
muxers Short agent fix (#645) 2021-11-08 18:33:37 +01:00
nameresolving Integrate dns resolving (#615) 2021-11-08 13:02:03 +01:00
protobuf harden `ProtoBuffer.finish()` assert (#672) 2021-12-13 18:31:05 +00:00
protocols Customizable gossipsub backoff on unsubscribe (#665) 2021-12-02 14:47:40 +00:00
stream Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
transports Handle websock exceptions in handle (#658) 2021-11-26 13:55:35 +01:00
upgrademngrs Short agent fix (#645) 2021-11-08 18:33:37 +01:00
utils adding raises defect across the codebase (#572) 2021-05-21 10:27:01 -06:00
builders.nim Add support for multiple addresses to transports (#598) 2021-11-24 14:01:12 -06:00
cid.nim fix peer score accumulation (#541) 2021-03-09 13:22:52 +01:00
connmanager.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
debugutils.nim Remove peer info (#610) 2021-09-08 11:07:46 +02:00
dial.nim merge latest master 2021-06-02 12:25:36 -06:00
dialer.nim Integrate dns resolving (#615) 2021-11-08 13:02:03 +01:00
errors.nim use LPError more consistently (#582) 2021-06-02 15:39:10 +02:00
multiaddress.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
multibase.nim fix peer score accumulation (#541) 2021-03-09 13:22:52 +01:00
multicodec.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
multihash.nim fix peer score accumulation (#541) 2021-03-09 13:22:52 +01:00
multistream.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
peerid.nim Merge pull request #651 from status-im/unstable 2021-11-16 17:36:00 +01:00
peerinfo.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
peerstore.nim Remove peer info (#610) 2021-09-08 11:07:46 +02:00
routing_record.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
signed_envelope.nim Signed envelopes and routing records (#656) 2021-11-24 14:03:40 -06:00
standard_switch.nim More builders (#560) 2021-04-06 14:16:23 -06:00
switch.nim fix: remove returned Futures from switch.start (#662) 2021-12-03 19:23:12 +01:00
transcoder.nim add side effect annotations (#197) 2020-06-01 09:25:16 +02:00
utility.nim now wild `except:` 2021-03-15 16:48:11 +09:00
varint.nim use stew/leb128 (#481) 2020-12-15 12:15:22 -06:00
vbuffer.nim make `isLiteral` compatible with ARC and ORC (#602) 2021-07-01 12:05:50 +02:00
wire.nim Websocket Transport (#593) 2021-08-03 15:48:03 +02:00