diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-08-16 00:32:13 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-08-21 21:47:18 +0300 |
commit | dc688f1d8869798d5e856810bcdd55a22968a443 (patch) | |
tree | 9c7016119cd468f8c0cf06a620a012039a2fac57 /src/qcam/assets/feathericons/x.svg | |
parent | 7615f58f9b7ee6cd1a858a86e53668406e9efa11 (diff) |
libcamera: yaml_parser: Fix bounds checking for 16-bit YamlObject::get()
The YamlObject::get() function specializations for 16-bit integers cast
the return value of strto(u)l() to a 16-bit integer, rendering the
bounds checking useless. Fix them.
Fixes: c7d260c03abd ("libcamera: yaml_parser: Add get() specializations for 16-bit integers")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/qcam/assets/feathericons/x.svg')
0 files changed, 0 insertions, 0 deletions