Check array get for < 0
authorMarc Horowitz <mhorowitz@fb.com>
Wed, 17 Jun 2015 18:06:45 +0000 (11:06 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 19 Jun 2015 02:30:11 +0000 (19:30 -0700)
commitdfd26951fe63b369a0d2c49edbe9fe4aaab69417
tree7ae9d8d177035de976619597e9047c5896536360
parent1137f4b872d19547b2f76874174034ff94060cc0
Check array get for < 0

Summary: dynamic's integer type is signed, so make sure array indices
are not negative.

(See https://our.intern.facebook.com/intern/tasks/?t=7445055)

Reviewed By: @Gownta

Differential Revision: D2145689
folly/dynamic.cpp
folly/test/DynamicTest.cpp