I have just updated to Lion and now my app is crashing which was working fine in older version. It crash on memset function with no logs. 

```
unsigned char *theValue;
add(theValue, someotherValues);

```

I have passed theValue reference to function 

```
add(unsigned char *inValue, some other perameter) {
memset(inValue,0,sizeOf(inValue)); // **here it is crashing**
}

```