diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-01-03 13:58:53 -0500 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-01-03 14:04:43 -0500 |
| commit | 74e4a329a34b1d1ad5e3ee5653ae3b7f0680c9fe (patch) | |
| tree | f7ec930d50ab493f46bd4d8a2665b9ac8ab5b2d1 /lib/command_match.c | |
| parent | cb94eaebffb96aded4784fd89221b11f22336c6a (diff) | |
lib: fix a few bugs in ring buffers
* Fix rare failure caused when end pointer is at end of buffer memory
and a call to ringbuf_get() is made that reads all of the data in the
buffer; start pointer was advanced past end pointer, causing some
special handling to be skipped
* Fix ringbuf_peek() moving start pointer
* Fix use after free
* Remove extraneous assignment
* Update relevant tests
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_match.c')
0 files changed, 0 insertions, 0 deletions
