NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/51822: [PATCH] add additional t_memmem check



The following reply was made to PR bin/51822; it has been noted by GNATS.

From: "Ngie Cooper (yaneurabeya)" <yaneurabeya%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51822: [PATCH] add additional t_memmem check
Date: Tue, 10 Jan 2017 23:56:51 -0800

 --Apple-Mail=_59BC736F-9F6A-4986-8517-FFCE95E6D971
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Patch attached.
 
 --Apple-Mail=_59BC736F-9F6A-4986-8517-FFCE95E6D971
 Content-Disposition: attachment;
 	filename=t_memmem-add-additional-testcase.patch
 Content-Type: application/octet-stream;
 	x-unix-mode=0644;
 	name="t_memmem-add-additional-testcase.patch"
 Content-Transfer-Encoding: 7bit
 
 Index: t_memmem.c
 ===================================================================
 RCS file: /cvsroot/src/tests/lib/libc/string/t_memmem.c,v
 retrieving revision 1.2
 diff -u -r1.2 t_memmem.c
 --- t_memmem.c	7 Jul 2011 08:27:36 -0000	1.2
 +++ t_memmem.c	11 Jan 2017 07:36:20 -0000
 @@ -51,6 +51,8 @@
  int lp6 = 1;
  char p7[] = "654";
  int lp7 = 3;
 +char p8[] = "89abc";
 +int lp8 = 5;
  
  char b0[] = "";
  int lb0 = 0;
 @@ -89,6 +91,7 @@
  
  	expect(memmem(b2, lb2, p4, lp4) == NULL);
  	expect(memmem(b2, lb2, p7, lp7) == NULL);
 +	expect(memmem(b2, lb2, p8, lp8) == NULL);
  }
  
  ATF_TP_ADD_TCS(tp)
 
 --Apple-Mail=_59BC736F-9F6A-4986-8517-FFCE95E6D971--
 


Home | Main Index | Thread Index | Old Index