OSSP CVS Repository

ossp - Check-in [4206]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4206
Date: 2001-Jul-18 19:37:49 (local)
2001-Jul-18 17:37:49 (UTC)
User:simons
Branch:
Comment: Since args is a pointer now, let the engine check that it does not get passed NULL here.
Tickets:
Inspections:
Files:
ossp-pkg/xds/regression-tests/xds-decode.c      1.2 -> 1.3     5 inserted, 0 deleted
ossp-pkg/xds/regression-tests/xds-encode.c      1.4 -> 1.5     5 inserted, 0 deleted
ossp-pkg/xds/regression-tests/xds-setbuffer.c      1.1 -> 1.2     1 inserted, 0 deleted

ossp-pkg/xds/regression-tests/xds-decode.c 1.2 -> 1.3

--- xds-decode.c 2001/07/16 17:50:08     1.2
+++ xds-decode.c 2001/07/18 17:37:49     1.3
@@ -51,6 +51,11 @@
         printf("Buffer size passed to engine is zero!\n");
         exit(1);
         }
+    if (args == NULL)
+        {
+        printf("args pointer passed to engine is NULL!\n");
+        exit(1);
+        }
     if (strncmp(buffer, "Hallo!", 6) != 0)
         {
         printf("The contents of the decode buffer are not what we expected.\n");


ossp-pkg/xds/regression-tests/xds-encode.c 1.4 -> 1.5

--- xds-encode.c 2001/07/16 17:50:08     1.4
+++ xds-encode.c 2001/07/18 17:37:49     1.5
@@ -51,6 +51,11 @@
         printf("Buffer size passed to engine is zero!\n");
         exit(1);
         }
+    if (args == NULL)
+        {
+        printf("args pointer passed to engine is NULL!\n");
+        exit(1);
+        }
     strncpy(buffer, "Hallo ", buffer_size);
     return 6;
     }


ossp-pkg/xds/regression-tests/xds-setbuffer.c 1.1 -> 1.2

--- xds-setbuffer.c      2001/07/16 18:38:53     1.1
+++ xds-setbuffer.c      2001/07/18 17:37:49     1.2
@@ -35,6 +35,7 @@
     assert(xds != NULL);
     assert(buffer != NULL);
     assert(buffer_size != 0);
+    assert(args != NULL);
     if (buffer_size >= 64)
         memset(buffer, 'a', 64);
     return 64;

CVSTrac 2.0.1