[opencv] 28/33: do not proceed with removing zero-length slice
Mattia Rizzolo
mattia at debian.org
Tue Oct 4 17:51:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag 2.4.12.2
in repository opencv.
commit c7b471f10f41bfbb63309bce7378582f220e1593
Author: Elena Shipunova <elena.shipunova at itseez.com>
Date: Mon Sep 7 13:50:30 2015 +0300
do not proceed with removing zero-length slice
(cherry picked from commit 036c3b4e6d45dcf81181bb2658601f758c976088)
---
modules/core/src/datastructs.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/core/src/datastructs.cpp b/modules/core/src/datastructs.cpp
index ddadd39..3e0bf47 100644
--- a/modules/core/src/datastructs.cpp
+++ b/modules/core/src/datastructs.cpp
@@ -1689,6 +1689,9 @@ cvSeqRemoveSlice( CvSeq* seq, CvSlice slice )
slice.end_index = slice.start_index + length;
+ if ( slice.start_index == slice.end_index )
+ return;
+
if( slice.end_index < total )
{
CvSeqReader reader_to, reader_from;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list