Re: why this statement will cause analysis error?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lu Fan wrote:
Hi all:
I use a tool to check my code, and it reports a error on a statement:
like:

typedef a{
int m;
char sz_a[11];
char n;
}t_a;

the memcpy will cause analysis error? The tool reports Overrun.

Perhaps the tool is confused by the typedef.
Make it
  typedef struct a{

--
Michael Eager	 eager@xxxxxxxxxxxx
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux