Troubleshooting

A server application crashes with memory-access violations only when a client sends an unusually long request field; shorter inputs are processed normally. What is the MOST likely cause?

Show the answer

Correct answerB. A buffer overrun

AWhy not this: A missing dependency stops the application from loading components, regardless of input length.

BWhy this is right: Input longer than its fixed buffer overwrites adjacent memory, causing access violations only on long fields.

CWhy not this: An architecture mismatch stops the program from loading at all, not only on long input.

DWhy not this: A memory leak grows over time with use; it does not fail only on one long field.

A crash triggered only by oversized input points to a buffer overrun: the application writes the long field past the end of a fixed-size buffer and corrupts adjacent memory. A memory leak builds up over time regardless of input length.