Ticket #2174 (closed defect: fixed)

Opened 11 days ago

Last modified 11 days ago

Fix out of bound error when enabling GnuTLS

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.9
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

When using GnuTLS, tls_init() will save cipher suite info to local array and might raise out of bound error if GnuTLS has more supported cipher suite then the maximum array size (MAX_CIPHERS=100).

This patch will not allow adding more cipher once the local array is full.

Thanks to Hugo Lefeuvre for the report and initial patch.

Change History

comment:1 Changed 11 days ago by riza

  • Status changed from new to closed
  • Resolution set to fixed

In 5929:

Close #2174: Fix out of bound error when enabling GnuTLS.

Note: See TracTickets for help on using tickets.