commit | 64a784a6fdd98fe0f65b881f9ace00f9a55d2053 | [log] [tgz] |
---|---|---|
author | Selim Gurun <sgurun@google.com> | Fri Apr 06 09:15:58 2012 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Apr 06 09:15:58 2012 -0700 |
tree | 349e15eb98bca83890309dc6bbefea07f04986df | |
parent | e85dc36282e5fa5cab610717a8bd91454eb1e1b9 [diff] | |
parent | 48d0ed6753beba44f3aa579be29278eecdca10ad [diff] |
Merge "Suppress a boundary check warning"
diff --git a/xpath.c b/xpath.c index d9d902c..8900313 100644 --- a/xpath.c +++ b/xpath.c
@@ -2806,7 +2806,7 @@ /* Finally copy result back to caller */ size = strlen(work) + 1; - if (size > buffersize) { + if (size > buffersize && buffersize <= (int)sizeof(work)) { work[buffersize - 1] = 0; size = buffersize; }