]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 202] faxrm & faxalter format string vulnerabilities
authorDarren Nickerson <darren.nickerson@ifax.com>
Fri, 14 Jun 2002 19:23:58 +0000 (19:23 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Fri, 14 Jun 2002 19:23:58 +0000 (19:23 +0000)
Collaborative effort to squash these, led by Lee. Thanks everyone!
This is a preliminary commit, which should be sanity-checked by anyone who
has a second, since we'd like to urge people to deploy 4.1.3 as a security
update

faxalter/faxalter.c++
faxrm/faxrm.c++
faxstat/faxstat.c++
sendfax/sendfax.c++
sendpage/sendpage.c++
util/faxfetch.c++
util/faxwatch.c++

index 74c6ceffb201ba6613dfa67ad479cea5ab20fec4..eb6e4dad3368620c62392aa5d744bd913a3d3783 100644 (file)
@@ -184,7 +184,7 @@ faxAlterApp::run(int argc, char** argv)
        hangupServer();
     }
     if (emsg != "")
-       printError(emsg);
+       printError("%s", (const char*) emsg);
 }
 
 void
index 47c79770495f4f55c5d580c5a0599c44236c3a46..cdfb97d59e085eb17c0eae86fcb187a5963cda07 100644 (file)
@@ -100,7 +100,7 @@ faxRmApp::run(int argc, char** argv)
        hangupServer();
     }
     if (emsg != "")
-       printError(emsg);
+       printError("%s", (const char*) emsg);
 }
 
 bool
index b8563526daf48e07b6766ba4757a4d73331e18f1..9b8df52cefad7e729a859c80e36a05e88013182a 100644 (file)
@@ -119,7 +119,7 @@ faxStatApp::run(int argc, char** argv)
        hangupServer();
     }
     if (emsg != "")
-       printError(emsg);
+       printError("%s", (const char*) emsg);
 }
 
 bool
index c611e414fde37668797fb535296eac52085e9d99..2ba6cea64cc224bba5940651d9806f1652d303a3 100644 (file)
@@ -242,7 +242,7 @@ sendFaxApp::run(int argc, char** argv)
         }
         hangupServer();
     }
-    if (!status) printError(emsg);
+    if (!status) printError("%s", (const char*) emsg);
     return (status);
 }
 
index 9773eea029b34da4d7d0118a3588188078225c64..c7dfb0e947779c16b878991a49b722ee0af73656 100644 (file)
@@ -166,7 +166,7 @@ sendPageApp::run(int argc, char** argv)
        hangupServer();
     }
     if (!status)
-       printError(emsg);
+       printError("%s", (const char*) emsg);
     return (status);
 }
 
index 4e9934b90e5d1c238340fed2ae4d746b24389e22..ee761aa4161cbf26444be79ce029ff4b84997fbf 100644 (file)
@@ -99,7 +99,7 @@ faxFetchApp::run(int argc, char** argv)
            hangupServer();
        }
        if (emsg != "")
-           printError(emsg);
+           printError("%s", (const char*) emsg);
     }
 }
 
index ca789edf5bd88ce8108e660dcd8ee74a7d5dca27..f1f9984e9e05e7a66797e21aef2dda77e5572a6d 100644 (file)
@@ -102,7 +102,7 @@ watchApp::run(int argc, char** argv)
        hangupServer();
     }
     if (emsg != "")
-       printError(emsg);
+       printError("%s", (const char*) emsg);
 }
 
 void