Re: Clarification on my CONTAINS problem


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jim Guerber on December 17, 2010 at 09:29:08:

In Reply to: Clarification on my CONTAINS problem posted by Bob A on December 17, 2010 at 06:27:49:

I just had a quick look at the code supporting contains in both c16 and c32. The symptom you describe is where a hex zero may be placed just after the last character in the string in order to create a C string to use for further actions.

The problem with constants (and symbolic constants) is that their declared length is the same as their current length allowing no space for an appended character. If a character were appended, it would clobber any data in memory that followed the string or constant.

The code I looked at copies both strings to buffers of sufficient length before patching that hex zero. It could be that some previous version of comet did not do that, but the current versions do. I believe that the problem has been fixed somewhere between the comet 2008 that you are running and the current version.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]