It's just that modifying the content declared with const will cause uncertain results.
Some programs generated by the linker will cause errors in writing read-only memory.
Some programs do not make mistakes because they do not have memory protection.
Some programs automatically make read-only memory writable when modifying read-only memory. So there is no mistake.