aboutsummaryrefslogtreecommitdiff
path: root/jim-zlib.c
AgeCommit message (Collapse)AuthorFilesLines
2017-04-20zlib: compression may need some additional free spaceSteve Bennett1-0/+6
Signed-off-by: Stuart Cassoff <stwo@bell.net>
2017-04-19zlib: deflate: free correct pointer on errorSteve Bennett1-2/+2
Reported-by: Stuart Cassoff <stwo@bell.net> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-10-09jim.c: Fix Object leak in zlib supportSteve Bennett1-2/+1
Change Jim_SetResultFormatted() to increment/decrement the ref count of any %#s parameters. This allows zero refcount objects to be passed in and be freed automatically. Reported-by: Evan Hunter <evan@ozhiker.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-29zlib: Don't use PASTE for INTMAX error messagesSteve Bennett1-7/+12
Can lead to different results on different compilers. Reported-by: Danyil Bohdan <danyil.bohdan@gmail.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-28zlib: Fix arg error checkingSteve Bennett1-12/+6
It is wrong to call Jim_WrongNumArgs() with argc == 0. Instead -1 should be returned from the subcmd function to display the standard error message. Add a --maintainer check for this condition in Jim_WrongNumArgs() and fix the zlib unit tests. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-28zlib: add zlib bindingsDima Krasner1-0/+315
Including documentation and tests