Opened 7 months ago

Closed 7 months ago

#2174 closed defect (fixed)

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 (1)

comment:1 Changed 7 months ago by riza

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

In 5929:

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

Note: See TracTickets for help on using tickets.