You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
fix: validate and coerce count param for read in HTTP API
When using the legacy `count` param, it's value wasn't being validated or coerced into an integer from a string.
It meant that a call to `http://localhost:5001/api/v0/files/read?offset=0&count=4096&arg=/gif/515f726a7087d.jpg&stream-channels=true` would produce a `count` value of `"4096"` and cause MFS to read the whole file!
There should probably be some better validation at the exporter level too.
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
0 commit comments