• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • C and C++ Code Counter
  • Bugs

Maximum stack depth not checked

Status: Inactive
Brought to you by: tim_littlefair
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Donate
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • Enhancement requests
  • Other
  • Program crashes
  • Program output ill-formed
  • Program output incorrect

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#52 Maximum stack depth not checked

Program crashes
open
nobody
C++ Parser (23)
5
2009-10-16
2009-10-16
Anonymous
No

Hello,

on some files, I had cccc crashing. After investigating, it appears that it occurs when stack_depth becomes greater than MAX_STACK_DEPTH.
My problems were in ParseUtility::tracein at cccc_utl.cc:507, but it could occur at other places too judging by the code.

At each usage to index a fixed size array, stack_depth should be checked to be < MAX_STACK_DEPTH.

Patch attached.

Regards,
Colin

Discussion

  • Nobody/Anonymous

    Nobody/Anonymous - 2009-10-16
     
    cccc_utl.cc.diff
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB