Author: rmudgett
Date: Fri Sep 26 10:18:25 2014
New Revision: 423983

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=423983
Log:
res_fax: Fix out of bounds error in update_modem_bits().

ASTERISK-24357 #close
Reported by: Jeremy Laine
Patches:
      res_fax_bounds.patch (license #6561) patch uploaded by Jeremy Laine
          Modified patch to not use magic numbers.
........

Merged revisions 423979 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/res/res_fax.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/res/res_fax.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/11/res/res_fax.c?view=diff&rev=423983&r1=423982&r2=423983
==============================================================================
--- branches/11/res/res_fax.c (original)
+++ branches/11/res/res_fax.c Fri Sep 26 10:18:25 2014
@@ -585,7 +585,7 @@
                m[i] = NULL;
        } else {
                tok = strtok(v, ", ");
-               while (tok && (i < 5)) {
+               while (tok && i < ARRAY_LEN(m) - 1) {
                        m[i++] = tok;
                        tok = strtok(NULL, ", ");
                }


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to