From upupsky at gmail.com Fri Jun 6 04:27:28 2008 From: upupsky at gmail.com (Yu Zhang) Date: Fri, 6 Jun 2008 13:27:28 +0200 Subject: [splint-discuss] Welcome to the "splint-discuss" mailing list (Digest mode) In-Reply-To: References: Message-ID: Hi, all, I am a new comer of Splint. I want to know whether Splint can slove my problems. I want to do some static analysis such data flow analysis for C source code and then modify the code by changing and appending some statements into the original one. What procedure should I follow? Thanks! Best wishes, Zhang Yu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20080606/22223905/attachment.html From upupsky at gmail.com Mon Jun 9 04:58:56 2008 From: upupsky at gmail.com (Yu Zhang) Date: Mon, 9 Jun 2008 13:58:56 +0200 Subject: [splint-discuss] Ask for help. Message-ID: Hi, all, I am a new comer of Splint. I want to know whether Splint can slove my problems. I want to do some static analysis such data flow analysis for C source code and then modify the code by changing and appending some statements into the original one. What procedure should I follow? Thanks! Best wishes, Zhang Yu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20080609/83bfee8f/attachment.html From lholzheid at bihl-wiedemann.de Mon Jun 9 05:32:35 2008 From: lholzheid at bihl-wiedemann.de (Ludolf Holzheid) Date: Mon, 9 Jun 2008 14:32:35 +0200 Subject: [splint-discuss] Ask for help. In-Reply-To: References: Message-ID: <20080609123235.GA9166@svr5.bihl-wiedemann.de> On Mon, 2008-06-09 13:58:56 +0200, Yu Zhang wrote: > Hi, all, > > I am a new comer of Splint. > > I want to know whether Splint can slove my problems. > > I want to do some static analysis such data flow analysis for C source code > and then modify the code by changing and appending some statements into the > original one. > > What procedure should I follow? Yu, I don't know what you are asking for. Splint is able to perform static code analysis for C code. It will output output messages similar to the warnings of the C compiler. You are, of course, free to change your code in response to the output of splint. But I'm afraid, this is a prerequisite, not the answer to your question. :-/ Ludolf -- --------------------------------------------------------------- Ludolf Holzheid Tel: +49 621 339960 Bihl+Wiedemann GmbH Fax: +49 621 3392239 Flo?w?rthstra?e 41 e-mail: lholzheid at bihl-wiedemann.de D-68199 Mannheim, Germany --------------------------------------------------------------- From upupsky at gmail.com Mon Jun 9 06:32:04 2008 From: upupsky at gmail.com (Yu Zhang) Date: Mon, 9 Jun 2008 15:32:04 +0200 Subject: [splint-discuss] Ask for help. In-Reply-To: <20080609123235.GA9166@svr5.bihl-wiedemann.de> References: <20080609123235.GA9166@svr5.bihl-wiedemann.de> Message-ID: Hi, Ludolf Holzheid, Is there API provided by Splint so I can do my own data flow analysis base on Splint? Thanks. Zhang Yu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20080609/c98f1afe/attachment.html From lholzheid at bihl-wiedemann.de Mon Jun 9 07:13:36 2008 From: lholzheid at bihl-wiedemann.de (Ludolf Holzheid) Date: Mon, 9 Jun 2008 16:13:36 +0200 Subject: [splint-discuss] Ask for help. In-Reply-To: References: <20080609123235.GA9166@svr5.bihl-wiedemann.de> Message-ID: <20080609141336.GA23057@svr5.bihl-wiedemann.de> On Mon, 2008-06-09 15:32:04 +0200, Yu Zhang wrote: > Hi, Ludolf Holzheid, > > Is there API provided by Splint so I can do my own data flow analysis base > on Splint? Hi Yu, Splint is run by the command line. I still don't know what you are trying to do ... Ludolf -- --------------------------------------------------------------- Ludolf Holzheid Tel: +49 621 339960 Bihl+Wiedemann GmbH Fax: +49 621 3392239 Flo?w?rthstra?e 41 e-mail: lholzheid at bihl-wiedemann.de D-68199 Mannheim, Germany --------------------------------------------------------------- From deepak.bhatia at nechclst.in Mon Jun 9 08:45:10 2008 From: deepak.bhatia at nechclst.in (Deepak Bhatia) Date: Mon, 9 Jun 2008 21:15:10 +0530 Subject: [splint-discuss] splint-discuss Digest, Vol 47, Issue 1 References: Message-ID: <0A8CFEC45B7F4C419F7543867C474423CE9331@mailserver.nechclst.in> An embedded message was scrubbed... From: "Deepak Bhatia" Subject: RE: splint-discuss Digest, Vol 47, Issue 1 Date: Mon, 9 Jun 2008 21:15:10 +0530 Size: 11322 Url: http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20080609/32f44fa1/attachment.eml -------------- next part -------------- Disclaimer: This message and any attachment(s) contained here are information that is confidential, proprietary to NEC HCL System Technologies and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the individual or the entity it is addressed to. If you are not the intended recipient of this message, you are not authorized to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. From ok at cs.otago.ac.nz Mon Jun 9 18:29:03 2008 From: ok at cs.otago.ac.nz (Richard A. O'Keefe) Date: Tue, 10 Jun 2008 13:29:03 +1200 Subject: [splint-discuss] Ask for help. In-Reply-To: <20080609141336.GA23057@svr5.bihl-wiedemann.de> References: <20080609123235.GA9166@svr5.bihl-wiedemann.de> <20080609141336.GA23057@svr5.bihl-wiedemann.de> Message-ID: On 10 Jun 2008, at 2:13 am, Ludolf Holzheid wrote: > I still don't know what you are trying to do ... He wants to add his *own* code to Splint to do a data flow analysis of some kind that Splint does not already do. It may well be possible to do this, but that's not what Splint was designed for, and I've never seen adequate documentation of Splint internals. Also, Splint is meant as a *lint checker*, which means that the occasional false positive and/or false negative aren't too much of a worry. It might be better to take something like suif or ckit and modify that. From ok at cs.otago.ac.nz Mon Jun 9 18:29:03 2008 From: ok at cs.otago.ac.nz (Richard A. O'Keefe) Date: Tue, 10 Jun 2008 13:29:03 +1200 Subject: [splint-discuss] Ask for help. In-Reply-To: <20080609141336.GA23057@svr5.bihl-wiedemann.de> References: <20080609123235.GA9166@svr5.bihl-wiedemann.de> <20080609141336.GA23057@svr5.bihl-wiedemann.de> Message-ID: On 10 Jun 2008, at 2:13 am, Ludolf Holzheid wrote: > I still don't know what you are trying to do ... He wants to add his *own* code to Splint to do a data flow analysis of some kind that Splint does not already do. It may well be possible to do this, but that's not what Splint was designed for, and I've never seen adequate documentation of Splint internals. Also, Splint is meant as a *lint checker*, which means that the occasional false positive and/or false negative aren't too much of a worry. It might be better to take something like suif or ckit and modify that. From PaulB at titanlogix.com Thu Jun 26 10:02:30 2008 From: PaulB at titanlogix.com (Paul Bartosek) Date: Thu, 26 Jun 2008 11:02:30 -0600 Subject: [splint-discuss] Bounds checking quirk Message-ID: <0CCBDC7F9B7A45478DFC51CD2C5C97A7573A13@tlcmsvr.titanlogix.com> Hi all, I've been fighting with splint for a little while over this and I'm not getting anywhere. I've boiled down the error to a pretty simple example here that works, is glaringly obvious but splint still claims there's a possible out of bounds store operation. Any ideas on how to get splint to recognize that maxSet(count) is actually 0? Here's the code: void Get_Fail_Count(/*@out@*/ unsigned char *failures) /*@requires maxSet(failures) >= 0@*/ { *failures = 20; } void my_other_func() { unsigned char count; Get_Fail_Count(&count); } And here is the error: $ splint test.c +bounds +charint -exportlocal Splint 3.1.1 --- 09 Aug 2007 test.c: (in function my_other_func) test.c:13:2: Possible out-of-bounds store: Get_Fail_Count(&count) Unable to resolve constraint: requires maxSet(&count @ test.c:13:17) >= 0 needed to satisfy precondition: requires maxSet(&count @ test.c:13:17) >= 0 derived from Get_Fail_Count precondition: requires maxSet() >= 0 A memory write may write to an address beyond the allocated buffer. (Use -boundswrite to inhibit warning) Finished checking --- 1 code warning Paul B. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cs.virginia.edu/pipermail/splint-discuss/attachments/20080626/ddf102a0/attachment-0001.html