proxy-wasm / proxy-wasm-cpp-host

WebAssembly for Proxies (C++ host implementation)
Apache License 2.0
84 stars 69 forks source link

Bound maximum size of random_get buffer. #284

Closed bryanmcquade closed 2 years ago

bryanmcquade commented 2 years ago

With this change, random_get will return an error for buffers larger than 64kB. This is consistent with the JavaScript Crypto.getRandomValues() maximum buffer size.

mathetake commented 2 years ago

Want to add tests in https://github.com/proxy-wasm/proxy-wasm-cpp-host/blob/master/test/exports_test.cc ?

PiotrSikora commented 2 years ago

Want to add tests in https://github.com/proxy-wasm/proxy-wasm-cpp-host/blob/master/test/exports_test.cc ?

Done, PTAL.