Dominant prevalence

Anything that was made in a language with access to memory.

  • Server software packages (nginx, apache, mysql, ...)

Embedded and IoT devices.

  • Due to lack of compiler support.

  • Due to lack of hardware capabilities.

In Python

# bo_1.py

message = "Hello World"
buffer = [None] * 10

print(message)

for i in range(15):
    buffer[i] = 'A'

print(message)
$ python3 bo_1.py
Hello World
Traceback (most recent call last):
    File "bo_1.py", line 7, in <module>
        buffer[i] = 'A'
IndexError: list assignment index out of range

In C

#include <stdio.h>
void main(int argc, char* argv[]){
    char message[] = "Hello World";
    int buffer[5];
    int i;

    printf("%s\n", message);
    for(i = 0;i < 15; i++) {
        buffer[i] = 'A';
    }
    printf("%s\n", message);
}
$ ./bo_1
Hello World
A

Last updated