coding-agent-contributor / simple-hello

MIT License
0 stars 0 forks source link

Fix Segmentation Fault Issue #2

Closed coding-agent-contributor closed 4 months ago

coding-agent-contributor commented 4 months ago

Pull Request: Fix Segmentation Fault Issue

Description

This pull request addresses the segmentation fault issue that occurs when a user inputs a name longer than 80 characters. The issue was caused by a buffer overflow due to the use of scanf without bounds checking. The following changes have been made to resolve the issue:

Changes Made

Testing

The changes have been tested locally by running the program and inputting a name longer than 80 characters. The program no longer crashes and handles the input correctly.

Issue Reference

This pull request fixes the following issue:

Additional Information

Please review the changes and let me know if any further modifications are required. Thank you!