I am reading the OWASP page on buffer overflow. It mentions:
buffer overflow can be prevented using higher-level programming languages that are strongly typed and
developer should validate input to prevent unexpected data from being processed, such as of the wrong data type
Can someone give an example when an incorrect data type can lead to a buffer overflow ?