Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
526e0097
Commit
526e0097
authored
Jul 13, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential out-of-bounds access in unit tests
parent
78700b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libcaf_core/test/string_view.cpp
libcaf_core/test/string_view.cpp
+3
-3
No files found.
libcaf_core/test/string_view.cpp
View file @
526e0097
...
...
@@ -132,7 +132,7 @@ CAF_TEST(find) {
CAF_CHECK_EQUAL
(
x
.
find
(
"bc"
,
1
),
y
.
find
(
"bc"
,
1
));
CAF_CHECK_EQUAL
(
x
.
find
(
"bc"
,
1
,
0
),
y
.
find
(
"bc"
,
1
,
0
));
CAF_CHECK_EQUAL
(
x
.
find
(
"bc"
,
0
,
1
),
y
.
find
(
"bc"
,
0
,
1
));
CAF_CHECK_EQUAL
(
x
.
find
(
"bc"
,
2
,
10
),
y
.
find
(
"bc"
,
2
,
10
));
CAF_CHECK_EQUAL
(
x
.
find
(
"bc"
,
2
,
2
),
y
.
find
(
"bc"
,
2
,
2
));
}
CAF_TEST
(
rfind
)
{
...
...
@@ -149,7 +149,7 @@ CAF_TEST(rfind) {
CAF_CHECK_EQUAL
(
x
.
rfind
(
"bc"
,
1
),
y
.
rfind
(
"bc"
,
1
));
CAF_CHECK_EQUAL
(
x
.
rfind
(
"bc"
,
1
,
0
),
y
.
rfind
(
"bc"
,
1
,
0
));
CAF_CHECK_EQUAL
(
x
.
rfind
(
"bc"
,
0
,
1
),
y
.
rfind
(
"bc"
,
0
,
1
));
CAF_CHECK_EQUAL
(
x
.
rfind
(
"bc"
,
2
,
10
),
y
.
rfind
(
"bc"
,
2
,
10
));
CAF_CHECK_EQUAL
(
x
.
rfind
(
"bc"
,
2
,
2
),
y
.
rfind
(
"bc"
,
2
,
2
));
}
CAF_TEST
(
find_first_of
)
{
...
...
@@ -166,7 +166,7 @@ CAF_TEST(find_first_of) {
CAF_CHECK_EQUAL
(
x
.
find_first_of
(
"bc"
,
1
),
y
.
find_first_of
(
"bc"
,
1
));
CAF_CHECK_EQUAL
(
x
.
find_first_of
(
"bc"
,
1
,
0
),
y
.
find_first_of
(
"bc"
,
1
,
0
));
CAF_CHECK_EQUAL
(
x
.
find_first_of
(
"bc"
,
0
,
1
),
y
.
find_first_of
(
"bc"
,
0
,
1
));
CAF_CHECK_EQUAL
(
x
.
find_first_of
(
"bc"
,
2
,
10
),
y
.
find_first_of
(
"bc"
,
2
,
10
));
CAF_CHECK_EQUAL
(
x
.
find_first_of
(
"bc"
,
2
,
2
),
y
.
find_first_of
(
"bc"
,
2
,
2
));
}
CAF_TEST
(
find_last_of
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment