Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
925af5c9
Commit
925af5c9
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
fix SentenceContext::at(int) UB due to wrong check being done
parent
e0ba6fc9
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/sentencecontext.h
+2
-2
2 additions, 2 deletions
libwccl/sentencecontext.h
with
2 additions
and
2 deletions
libwccl/sentencecontext.h
+
2
−
2
View file @
925af5c9
...
...
@@ -75,7 +75,7 @@ public:
/// Token access convenience function - const.
/// Will return NULL if the passed position is not valid in this Sentence
const
Corpus2
::
Token
*
at
(
int
abs_pos
)
const
{
if
(
is_
current_
inside
())
{
if
(
is_inside
(
abs_pos
))
{
return
get_sentence
()[
abs_pos
];
}
else
{
return
NULL
;
...
...
@@ -90,7 +90,7 @@ public:
/// Token access convenience function.
/// Will return NULL if the passed position is not valid in this Sentence
Corpus2
::
Token
*
at
(
int
abs_pos
)
{
if
(
is_
current_
inside
())
{
if
(
is_inside
(
abs_pos
))
{
return
get_sentence
()[
abs_pos
];
}
else
{
return
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment