quickjson icon indicating copy to clipboard operation
quickjson copied to clipboard

Limit the size of count parameters

Open diegorocha opened this issue 9 years ago • 1 comments

Hi,

It's more a suggestion than a bug.

When a user pass a higher value to the count parameter the application crashes causing a 502 error, like this http://quickjson.com/generate/10c110fbba64?count=2000

I think that it occurs in the routine to generate the random values to json, maybe you should generate a small size, 300 itens, 500 itens, and complete the count with the same values, or ignore high values and use a max count built-in.

PS: It's a great and useful tool!

diegorocha avatar Jul 15 '15 16:07 diegorocha

I think this a security issue, because is easy to overload the server with a simple parameter in URL. I suggest remove this issue and treat it through email.

fabiocerqueira avatar Jul 15 '15 20:07 fabiocerqueira