diff options
| author | Louis Dionne <ldionne@apple.com> | 2020-02-12 16:20:09 +0100 |
|---|---|---|
| committer | Louis Dionne <ldionne@apple.com> | 2020-02-12 16:21:46 +0100 |
| commit | b5abd50f06966af28df4f80850f006c9cda7a07e (patch) | |
| tree | 19561f4c2c3c42689b41ee0d755a6b9775d85600 /lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py | |
| parent | ab4d60642142b369557adc83c9c51cec01b4b213 (diff) | |
[libc++] span: Guard against overflow in span::subspan
The calculation _Offset + _Count <= size() may overflow, so use
_Count <= size() - _Offset instead. Note that this is safe due to
the previous constraint that _Offset <= size().
Patch by Michael Schellenberger Costa.
Differential Revision: https://reviews.llvm.org/D71998
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
0 files changed, 0 insertions, 0 deletions
