aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/pj_gridlist.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f21dfe68..cb01ec70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-28 Frank Warmerdam <warmerdam@pobox.com>
+
+ * src/pj_gridlist.c: avoid possible buffer overflow.
+ https://bugs.meego.com/show_bug.cgi?id=14963
+
2011-03-23 Frank Warmerdam <warmerdam@pobox.com>
* src/pj_initcache.c: Fix reversed memcpy that causes a crash on the
diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c
index 9f48146f..0ed66310 100644
--- a/src/pj_gridlist.c
+++ b/src/pj_gridlist.c
@@ -192,7 +192,7 @@ PJ_GRIDINFO **pj_gridlist_from_nadgrids( projCtx ctx, const char *nadgrids,
s[end_char] != '\0' && s[end_char] != ',';
end_char++ ) {}
- if( end_char > sizeof(name) )
+ if( end_char >= sizeof(name) )
{
pj_ctx_set_errno( ctx, -38 );
pj_release_lock();