ndef: Fix offset check when parsing NDEF records
authorOlivier Guiter <olivier.guiter@linux.intel.com>
Mon, 22 Oct 2012 13:52:50 +0000 (15:52 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 24 Oct 2012 09:01:20 +0000 (11:01 +0200)
commit73ee97e0eb6497d3439ee87bc203f309378cd585
treef534f8d4aaf796f2f19450410694c7c17da552da
parente2d73d2b1e5c5cb7b2cb188e02f31e47dd97c611
ndef: Fix offset check when parsing NDEF records

For each record header entry we need to check that the offest and the
payload length is not longer than the total record length.
src/ndef.c