Using Set with too much data leads to errors and unknown behaviour on macos and windows.
This PR limits the passable data on those platforms to known limits.
I also raised the max input on macos by switching to base64 for encoding. It uses a new prefix and also checks for the old one, so it should be backwards compatible.
This fixes #84
Also note that on macos the current behaviour actually interprets the input data as another command after a limit is reached. This could be a security vulnerability but is probably mitigated by the hex encoding.
Using
Set
with too much data leads to errors and unknown behaviour on macos and windows.This PR limits the passable data on those platforms to known limits.
I also raised the max input on macos by switching to base64 for encoding. It uses a new prefix and also checks for the old one, so it should be backwards compatible.
This fixes #84
Also note that on macos the current behaviour actually interprets the input data as another command after a limit is reached. This could be a security vulnerability but is probably mitigated by the hex encoding.