Descrizione
IBM DB2 High Performance Unload 6.1.0.3, 5.1.0.1, 6.1.0.2, 6.5, 6.5.0.0 IF1, 6.1.0.1, 6.1, and 5.1 could allow an authenticated user to cause the program to crash due to the incorrect calculation of the size of the data that is being pointed to.
Tipo di vulnerabilità
CWE-467
Use of sizeof() on a Pointer Type
The code calls sizeof() on a pointer type, when the programmer intended to determine the size of the data that is being pointed to.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Riservatezza |
Modificare la memoria, Leggere la memoria |
Come si previene
Sviluppo
Use expressions such as sizeof(*pointer) instead of sizeof(pointer), unless you intend to run sizeof() on a pointer type to gain some platform independence or if you are allocating a variable on the stack.
Tutte le 3 CVE di tipo CWE-467, con andamento e prevenzione