Re: Linux printf funny
- From: "tbroberg_nospam@xxxxxxxx" <tbroberg@xxxxxxxx>
- Date: 27 Feb 2007 10:47:41 -0800
My guess is that some other part of your program is corrupting memory,
and that after 7 or 8 iterations, the corruption has reached the code
or variables used in this function. There's nothing wrong with the
code you posted.- Hide quoted text -
....and this fits with your finding that the problem "went away" when
you moved the code into a different scope. The buffers / variables
would have moved, causing the overrun to smush something else instead.
- Tim.
.
- References:
- Linux printf funny
- From: Paul Burke
- Re: Linux printf funny
- From: Stef
- Re: Linux printf funny
- From: Paul Burke
- Re: Linux printf funny
- From: Boudewijn Dijkstra
- Re: Linux printf funny
- From: Paul Burke
- Re: Linux printf funny
- From: Arlet
- Linux printf funny
- Prev by Date: Re: Internet Embedded
- Next by Date: Re: PIC vs ARM assembler (no flamewar please)
- Previous by thread: Re: Linux printf funny
- Next by thread: Re: Linux printf funny
- Index(es):