The overflow flag would then be set so the program can be aware of the problem and mitigate this or signal an error.
The overflow flag serves as a mechanism for the program to detect and respond to situations where it exceeds its allocated memory capacity.