Date: Thu, 2 Feb 2017 16:43:04 +0200
Description: Fix infinite loop parsing line options on arm
 The loop happens because getopt returns -1 (no more options) which is
 assigned to a char. Type char on arm64 is always unsigned, so the test
 for ">0" will always be true. The loop thinks it has more options to
 parse resulting in an infinite loop.
 .
 Fix simply changes the type of lvalue from char to int.
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/fuseiso/+bug/1661289
Author: Dan Andresan <dan.andresan@enea.com>
Author: Sven Geuer <sge@debian.org>
Forwarded: not-needed
Last-Update: 2024-09-14
--- a/src/fuseiso.c
+++ b/src/fuseiso.c
@@ -309,9 +309,9 @@
     maintain_mtab = 1;
     iocharset = NULL;
     
-    char c;
+    int c;
     while((c = getopt(argc, argv, "+npc:h")) > 0) {
-        switch(c) {
+        switch((char)c) {
             case 'n':
                 maintain_mtab = 0;
                 break;
