quickjson
quickjson copied to clipboard
Limit the size of count parameters
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!
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.