James Hawkins : winebuild: Document the correlation of spec-> ordinals and spec->limit with an assertion (Coverity 902).

Alexandre Julliard julliard at winehq.org
Mon Mar 23 12:34:57 CDT 2009


Module: wine
Branch: master
Commit: 665a0424cda2b390060e99659965597e5cea9775
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=665a0424cda2b390060e99659965597e5cea9775

Author: James Hawkins <truiken at gmail.com>
Date:   Sun Mar 22 14:32:51 2009 -0700

winebuild: Document the correlation of spec->ordinals and spec->limit with an assertion (Coverity 902).

---

 tools/winebuild/spec16.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/winebuild/spec16.c b/tools/winebuild/spec16.c
index 7c6fc45..2ce3b0c 100644
--- a/tools/winebuild/spec16.c
+++ b/tools/winebuild/spec16.c
@@ -549,6 +549,7 @@ static void output_module16( DLLSPEC *spec )
 
     if (!spec->ordinals)
     {
+        assert(spec->limit == 0);
         spec->ordinals = xmalloc( sizeof(spec->ordinals[0]) );
         spec->ordinals[0] = NULL;
     }




More information about the wine-cvs mailing list