~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to util/hist.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-01-05 21:10:03 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090105211003-mh6zc3um4k1uhsj7
Tags: 1:4.2.4p4+dfsg-8
It did not properly check the return value of EVP_VerifyFinal
which results in an malformed DSA signature being treated as
a good signature rather than as an error.  (CVE-2009-0021)

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        }
80
80
        if (n == 0)
81
81
            return;
82
 
        qsort((char *)ovfl, (size_t)n, sizeof(long), col);
 
82
        qsort(
 
83
#ifdef QSORT_USES_VOID_P
 
84
            (void *)
 
85
#else
 
86
            (char *)
 
87
#endif
 
88
            ovfl, (size_t)n, sizeof(long), col);
83
89
        w = 0;
84
90
        j = 0;
85
91
        for (i = 0; i < n; i++) {