Hello community, here is the log from the commit of package ansilove for openSUSE:Factory checked in at 2019-12-13 12:04:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ansilove (Old) and /work/SRC/openSUSE:Factory/.ansilove.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ansilove" Fri Dec 13 12:04:12 2019 rev:3 rq:756675 version:4.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/ansilove/ansilove.changes 2019-12-05 17:34:41.037445248 +0100 +++ /work/SRC/openSUSE:Factory/.ansilove.new.4691/ansilove.changes 2019-12-13 12:05:02.829386918 +0100 @@ -1,0 +2,11 @@ +Tue Dec 10 18:50:30 UTC 2019 - Martin Hauke <[email protected]> + +- Update to version 4.0.6 + * Remove extraneous sauceReadFileName() call, read from existing + SAUCE record + * Use strdup() when assigning fileName and fext fallback values + * Call memset() to set all record struct fields to zero + * Free SAUCE record and comments once and for all when exiting + the program + +------------------------------------------------------------------- Old: ---- ansilove-4.0.5.tar.gz New: ---- ansilove-4.0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ansilove.spec ++++++ --- /var/tmp/diff_new_pack.kfMjaC/_old 2019-12-13 12:05:04.745386194 +0100 +++ /var/tmp/diff_new_pack.kfMjaC/_new 2019-12-13 12:05:04.769386185 +0100 @@ -1,6 +1,7 @@ # # spec file for package ansilove # +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -17,7 +18,7 @@ Name: ansilove -Version: 4.0.5 +Version: 4.0.6 Release: 0 Summary: ANSI and ASCII art to PNG converter License: BSD-2-Clause ++++++ ansilove-4.0.5.tar.gz -> ansilove-4.0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/.travis.yml new/ansilove-4.0.6/.travis.yml --- old/ansilove-4.0.5/.travis.yml 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/.travis.yml 2019-12-10 11:55:59.000000000 +0100 @@ -35,7 +35,7 @@ coverity_scan: project: name: "ansilove/ansilove" - version: 4.0.5 + version: 4.0.6 description: "ANSi / ASCII art to PNG converter in C" notification_email: [email protected] build_command_prepend: cmake . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/ChangeLog new/ansilove-4.0.6/ChangeLog --- old/ansilove-4.0.5/ChangeLog 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/ChangeLog 2019-12-10 11:55:59.000000000 +0100 @@ -1,3 +1,12 @@ +AnsiLove/C 4.0.6 (2019-12-10) + +- Remove extraneous sauceReadFileName() call, read from existing SAUCE record +- Use strdup() when assigning fileName and fext fallback values +- Call memset() to set all record struct fields to zero +- Free SAUCE record and comments once and for all when exiting the program + + + AnsiLove/C 4.0.5 (2019-11-19) - Add ENABLE_SECCOMP build option, to allow building seccomp support diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/FILE_ID.DIZ new/ansilove-4.0.6/FILE_ID.DIZ --- old/ansilove-4.0.5/FILE_ID.DIZ 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/FILE_ID.DIZ 2019-12-10 11:55:59.000000000 +0100 @@ -17,7 +17,7 @@ - -----------//______|----------------- - : : | | - | Ansilove/C 4.0.5 | + | Ansilove/C 4.0.6 | | | | ANSi=>PNG converter & library | | | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/README.md new/ansilove-4.0.6/README.md --- old/ansilove-4.0.5/README.md 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/README.md 2019-12-10 11:55:59.000000000 +0100 @@ -23,7 +23,7 @@ This is a complete rewrite of [AnsiLove/PHP][3] in the C programming language. It converts ANSi and artscene related file formats into PNG images. The project is considered as stable, current version -is `4.0.5`. +is `4.0.6`. # Specs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/ansilove.c new/ansilove-4.0.6/src/ansilove.c --- old/ansilove-4.0.5/src/ansilove.c 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/ansilove.c 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * ansilove.c - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus @@ -205,7 +205,7 @@ if (asprintf(&fileName, "%s%s", input, ".png") == -1) errx(EXIT_FAILURE, "Memory allocation error."); } else { - fileName = output; + fileName = strdup(output); } /* display name of input and output files */ @@ -214,7 +214,7 @@ /* get file extension */ char *fext = strrchr(input, '.'); - fext = fext ? strtolower(strdup(++fext)) : ""; + fext = fext ? strtolower(strdup(++fext)) : strdup(""); /* check if current file has a .diz extension */ if (!strcmp(fext, "diz")) @@ -224,10 +224,8 @@ errx(EXIT_FAILURE, "%s", ansilove_error(&ctx)); /* adjust the file size if file contains a SAUCE record */ - if (fileHasSAUCE) { - sauce *saucerec = sauceReadFileName(input); - ctx.length -= 129 - (saucerec->comments > 0 ? 5 + 64 * saucerec->comments : 0); - } + if (fileHasSAUCE) + ctx.length -= 129 - (record->comments > 0 ? 5 + 64 * record->comments : 0); int (*loader)(struct ansilove_ctx *, struct ansilove_options *); @@ -275,6 +273,9 @@ if (options.scale_factor) fprintf(messages, "Scale factor: %d\n", options.scale_factor); + + free(fileName); + free(fext); } /* either display SAUCE or tell us if there is no record */ @@ -314,5 +315,8 @@ ansilove_clean(&ctx); + free(record->comment_lines); + free(record); + return EXIT_SUCCESS; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/config.h new/ansilove-4.0.6/src/config.h --- old/ansilove-4.0.5/src/config.h 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/config.h 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * config.h - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus @@ -16,6 +16,6 @@ #include <stdint.h> /* configuration defines */ -#define VERSION "4.0.5" +#define VERSION "4.0.6" #endif /* CONFIG_H */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/fonts.h new/ansilove-4.0.6/src/fonts.h --- old/ansilove-4.0.5/src/fonts.h 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/fonts.h 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * fonts.h - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/sauce.c new/ansilove-4.0.6/src/sauce.c --- old/ansilove-4.0.5/src/sauce.c 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/sauce.c 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * sauce.c - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus @@ -38,6 +38,7 @@ { sauce *record; record = malloc(sizeof *record); + memset(record, 0, sizeof *record); if (record != NULL) { readRecord(file, record); @@ -49,7 +50,6 @@ readRecord(FILE *file, sauce *record) { if (fseek(file, 0 - RECORD_SIZE, SEEK_END) != EXIT_SUCCESS) { - free(record); return; } @@ -57,7 +57,6 @@ record->ID[sizeof (record->ID) - 1] = '\0'; if (read_status != 1 || strcmp(record->ID, SAUCE_ID) != 0) { - free(record); return; } fread(record->version, sizeof (record->version) - 1, 1, file); @@ -83,7 +82,6 @@ record->tinfos[sizeof (record->tinfos) - 1] = '\0'; if (ferror(file) != EXIT_SUCCESS) { - free(record); return; } @@ -94,9 +92,6 @@ if (readComments(file, record->comment_lines, record->comments) == -1) { record->comments = 0; } - } else { - free(record); - return; } } } @@ -112,7 +107,6 @@ ID[sizeof (ID) - 1] = '\0'; if (strcmp(ID, COMMENT_ID) != 0) { - free(comment_lines); return -1; } @@ -125,16 +119,13 @@ if (ferror(file) == EXIT_SUCCESS) { comment_lines[i] = strdup(buf); if (comment_lines[i] == NULL) { - free(comment_lines); return -1; } } else { - free(comment_lines); return -1; } } return 0; } - free(comment_lines); return -1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/sauce.h new/ansilove-4.0.6/src/sauce.h --- old/ansilove-4.0.5/src/sauce.h 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/sauce.h 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * sauce.h - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/seccomp.h new/ansilove-4.0.6/src/seccomp.h --- old/ansilove-4.0.5/src/seccomp.h 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/seccomp.h 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * seccomp.h - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2019, Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/strtolower.c new/ansilove-4.0.6/src/strtolower.c --- old/ansilove-4.0.5/src/strtolower.c 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/strtolower.c 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * strtolower.c - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ansilove-4.0.5/src/strtolower.h new/ansilove-4.0.6/src/strtolower.h --- old/ansilove-4.0.5/src/strtolower.h 2019-11-19 11:40:41.000000000 +0100 +++ new/ansilove-4.0.6/src/strtolower.h 2019-12-10 11:55:59.000000000 +0100 @@ -1,6 +1,6 @@ /* * strtolower.h - * Ansilove 4.0.5 + * Ansilove 4.0.6 * https://www.ansilove.org * * Copyright (c) 2011-2019 Stefan Vogt, Brian Cassidy, and Frederic Cambus
