CVE-2014-0160 heartbeat

Change-Id: I00ee89f69d85010be5d3a537092349fa9eeb71c8
(cherry picked from commit 9af4ecd2b485ae4bba443eb0ec6f958fcc2e3619)