ERROR_BUFFER_OVERFLOW - 111 (0x6F)

The file name is too long.

Updated: Feb 21, 2026

Overview

The ERROR_BUFFER_OVERFLOW error code indicates that a buffer provided by the caller was not large enough to hold the data required for the operation.

Technical Meaning

This error is returned when an API function requires more space than what was allocated in the buffer passed by the application. This can occur during file operations, such as renaming or copying files with very long names.

Error Details

  • Error Name: ERROR_BUFFER_OVERFLOW
  • Numeric Code: 111 (0x6F)
  • Short Description: The file name is too long.

Usage Context

This error typically occurs when an application attempts to perform a file operation that results in the creation of a filename longer than what can be accommodated by the buffer provided. This limitation applies to both file and directory names, as well as paths.

Developer Interpretation

When this error is encountered, it indicates that the buffer passed to the API function was insufficient for storing the required data. Developers should ensure that buffers are appropriately sized before calling functions that may require them.

Related Errors

  • ERROR_INSUFFICIENT_BUFFER: Indicates a similar issue but with less specific context regarding file names or paths.
  • ERROR_PATH_NOT_FOUND: Occurs when the path provided is invalid, which might also lead to buffer overflow issues if the path is excessively long.

FAQ

Q: What causes ERROR_BUFFER_OVERFLOW?

A: This error occurs when a buffer passed to an API function is too small to hold the data required for the operation. Common causes include attempting to rename or copy files with very long names.

Q: How can I resolve this issue?

A: Ensure that buffers are appropriately sized before calling functions that may require them. If you are working with file operations, consider using larger buffer sizes to accommodate longer filenames and paths.

Summary

ERROR_BUFFER_OVERFLOW is a specific error code indicating that a buffer provided by the application was not large enough for the required data. Developers should ensure proper buffer sizing to avoid this issue during file operations.