[PR #222] [MERGED] BugFix : loop out of range will cause stack smashing #504

Open
opened 2026-01-29 15:13:19 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/222
Author: @54shady
Created: 2/19/2019
Status: Merged
Merged: 5/5/2019
Merged by: @yanglbme

Base: masterHead: BugFix


📝 Commits (2)

  • 1abb8b2 BugFix : loop out of range will cause stack smashing
  • cef21cc Update shellSort.c

📊 Changes

1 file changed (+51 additions, -31 deletions)

View changed files

📝 sorting/shellSort.c (+51 -31)

📄 Description

Data Sorted
Shell Sort Big O Notation:
--> Best Case: O(n log(n))
--> Average Case: depends on gap sequence
--> Worst Case: O(n)

Time spent sorting: 0.000006
*** stack smashing detected ***: <unknown> terminated
Aborted

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/222 **Author:** [@54shady](https://github.com/54shady) **Created:** 2/19/2019 **Status:** ✅ Merged **Merged:** 5/5/2019 **Merged by:** [@yanglbme](https://github.com/yanglbme) **Base:** `master` ← **Head:** `BugFix` --- ### 📝 Commits (2) - [`1abb8b2`](https://github.com/TheAlgorithms/C/commit/1abb8b20bbdffbfa1f585df06a28e439c92ef9b4) BugFix : loop out of range will cause stack smashing - [`cef21cc`](https://github.com/TheAlgorithms/C/commit/cef21ccea92bfa3e7648da85d89ba9ba524852b9) Update shellSort.c ### 📊 Changes **1 file changed** (+51 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `sorting/shellSort.c` (+51 -31) </details> ### 📄 Description Data Sorted Shell Sort Big O Notation: --> Best Case: O(n log(n)) --> Average Case: depends on gap sequence --> Worst Case: O(n) Time spent sorting: 0.000006 *** stack smashing detected ***: <unknown> terminated Aborted --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:13:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#504