From: nagachika00@... Date: 2015-11-27T21:25:26+00:00 Subject: [ruby-core:71712] [Ruby trunk - Bug #11369] Check length of selected NPN protocol Issue #11369 has been updated by Tomoyuki Chikanaga. Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE Backported r52227 and (partially) r52228 into `ruby_2_2` branch at r52772. ---------------------------------------- Bug #11369: Check length of selected NPN protocol https://bugs.ruby-lang.org/issues/11369#change-55118 * Author: Jeremy Evans * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-07-16 openbsd 51261) [x86_64-openbsd] * Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE ---------------------------------------- This fixes a failure when running on LibreSSL, where an exception wouldn't be raised if the callback returned a selected protocol that was too long (more than 255 bytes). Instead, it would silently truncate the selected protocol by casting the length from int to unsigned char. ---Files-------------------------------- 0007-Check-length-of-selected-NPN-protocol.patch (1.12 KB) -- https://bugs.ruby-lang.org/