Opened 10 years ago

Closed 10 years ago

#11493 closed defect (outdated)

access violation in wxFileName() with invalid path

Reported by: kcwu Owned by:
Priority: normal Milestone:
Component: base Version:
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

If wxFileName constructor is feeded with invalid path, say
"file:/abc/def.txt".
It will access invalid memory location when it try to
read path[0] because path is empty.

I don't know how to handle such case correctly. I just follow the same way (silent return) as pathOrig.empty().

Attachments (1)

wx-bug-invalid-path.diff download (842 bytes) - added by kcwu 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by kcwu

comment:1 Changed 10 years ago by vadz

  • Resolution set to outdated
  • Status changed from new to closed

Thanks for the patch but AFAICS this is already fixed in svn (in r62677 I think).

Note: See TracTickets for help on using tickets.