format: Restrict formatted fields to a reasonable size
commit002a3ef0b663724b0f43dbd2d184505afae6dd3e
authorSteve Bennett <steveb@workware.net.au>
Thu, 11 May 2017 23:58:37 +0000 (12 09:58 +1000)
committerSteve Bennett <steveb@workware.net.au>
Fri, 12 May 2017 03:02:09 +0000 (12 13:02 +1000)
treeae15979f770d0d2210cddbb8ad677cfb74f6d677
parente288a2541df4b0cfd02cbe3c1b9305d516149d23
format: Restrict formatted fields to a reasonable size

Calling the system sprintf() with overly long sizes can cause problems,
so limit field size to 10000.

Reported-by: Ryan Whitworth <me@ryanwhitworth.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim-format.c