By providing some specific integer values (like 0) to the size function, it is possible to obtain a Segmentation fault error, leading to the process crash.
CWE-241 Improper Handling of Unexpected Data Type