mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 00:08:06 +08:00
limit raw input to 512 kilobytes
This commit is contained in:
parent
2276b55c57
commit
bc38bdf512
@ -101,7 +101,7 @@ func ObjectPut(n *core.IpfsNode, args []string, opts map[string]interface{}, out
|
||||
err error
|
||||
)
|
||||
|
||||
data, err = ioutil.ReadAll(os.Stdin)
|
||||
data, err = ioutil.ReadAll(io.LimitReader(os.Stdin, 512*1024))
|
||||
if err != nil {
|
||||
return fmt.Errorf("ObjectPut error: %v", err)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user