cu coredumps

Mark Cullen mark.cullen at dsl.pipex.com
Wed Oct 27 10:36:23 PDT 2004


7fd649$0$743$415eb37d at xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
In-Reply-To: <417fd649$0$743$415eb37d at xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 35
NNTP-Posting-Host: 81.178.66.177
X-Trace: 1098898575 crater_reader.dragonflybsd.org 744 81.178.66.177
Xref: crater_reader.dragonflybsd.org dragonfly.bugs:2877

Sascha Wildner wrote:
> Mark Cullen wrote:
> 
> 
>>What does the ^= mean in the above?
> 
> 
> Assign bitwise xor.
> 
> If you want to learn C, these threads might be interesting to you:
> 
> http://leaf.dragonflybsd.org/mailarchive/kernel/2004-09/index.html#00084
> http://leaf.dragonflybsd.org/mailarchive/kernel/2004-10/index.html#00006
> 
> Sascha
> 

Thanks.

Just for clarification, am I right in saying that.. if I did (and have 
done in this case)

tmp_cp = malloc(sizeof(char) * 10);
cp = tmp_cp
free(tmp_cp);
tmp_cp = NULL;

then cp would now be pointing to a block of memory that could be used by 
some other process/overwritten? Would that not make it impossible for me 
to actually free tmp_cp, as cp needs it?

-- 
Internet Explorer? Try FireFox at http://www.mozilla.org/products/firefox/
Outlook Express? Try ThunderBird at 
http://www.mozilla.org/products/thunderbird/





More information about the Bugs mailing list