Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz) [message #12285 is a reply to message #12284] Tue, 23 October 2007 17:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
mdelfede wrote on Tue, 23 October 2007 11:31

luzr wrote on Tue, 23 October 2007 16:52


On this line:

			li[i].firstedited = li.At(i + count).firstedited;




I suppose the operator [] uses a static temporary or something like that ?



Nope. But it returns a reference. However, .At invalidates references to Vector.... So if the left side of statement is evaluated before the right side, you have "free block overwrite"...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "init" files in packages...
Next Topic: ProgessIndicator::SetColor
Goto Forum:
  


Current Time: Wed May 08 09:01:19 CEST 2024

Total time taken to generate the page: 0.02685 seconds