Commit bc38bdf5 authored by Henry's avatar Henry

limit raw input to 512 kilobytes

parent 2276b55c
......@@ -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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment