Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The trick here is you are telling the compiler you really do want to do this bad thing. If on your system pointers are typecast to something other than an unsigned int, then you want to use the type they are defined to be instead of unsigned int.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

PRE00-A

2

2(unlikely)

3(medium)

P2

L3

 Credits:

- I used this little tutorial to help me figure out the particulars of unions, as they are not often used. Read it here

...