folly: ubsan: &v[0] is undefined if v.empty()
authorLucian Grijincu <lucian@fb.com>
Tue, 10 May 2016 00:03:34 +0000 (17:03 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Tue, 10 May 2016 00:05:18 +0000 (17:05 -0700)
commit70cab78c531e298fe76a7f05045231b6615cd912
tree25c5d3d06ca1776068de1ca4eb2ae7eb99ace806
parent421861958283f956c6202e8c03ffb79258ab3c96
folly: ubsan: &v[0] is undefined if v.empty()

Summary:
before:

  [ RUN      ] RangeFunc.Vector
  bits/stl_vector.h:866:9: runtime error: reference binding to null pointer of type 'int'

Reviewed By: yfeldblum

Differential Revision: D3279253

fbshipit-source-id: 957a8ec050f5c3b27febf7e6cd16ad1d307da169
folly/test/RangeTest.cpp