aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rmi.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-16 10:53:47 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-16 10:53:47 +0000
commitfe6f8b92c7f1f72a0eb677f01899f1dfa07b5342 (patch)
tree5b238ca1101ce3563203839bb86e177ab1158fe6 /epan/dissectors/packet-rmi.c
parentc795851bebb1ed1d7a0c0302c295b55687aa315c (diff)
Add a new function, tvb_new_subset_remaining(), which is a sligtly optimized version of tvb_new_subset(). The latter can be mapped to the former by tvb_new_subset(tvb, offset, -1 /* backing_length */, -1 /* reported_length */). We can disable some bounds checking because 'backing_length' and 'reported_length' are hardcoded to -1.
The current implementation of tvb_new_subset_remaining() only has the THROW_ON(reported_length < 1) check removed when compared to tvb_new_subset(). So there's room for improvement in this function. We should be able to disable some more (redundant) bounds checking. svn path=/trunk/; revision=29445
Diffstat (limited to 'epan/dissectors/packet-rmi.c')
0 files changed, 0 insertions, 0 deletions