video-info: Add unit test for overflow checks
authorSebastian Dröge <sebastian@centricular.com>
Thu, 24 Nov 2016 13:40:22 +0000 (15:40 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Nov 2016 13:40:22 +0000 (15:40 +0200)
commit47fdb15074fb4bebf20bf63f857b82d784b96919
tree6e38ce62a92894cfc34fc3679cc0f16f3e841452
parent3d7a5666402d7c911303ebf718cf003eccffded5
video-info: Add unit test for overflow checks

And also prevent overflows caused by allowing uint width/height in
gst_video_info_set_format() but storing them as (signed!) ints.
gst-libs/gst/video/video-info.c
tests/check/libs/video.c