Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Apple seems to have an issue with Data Loss. Yet another serious bug in OSX.

Apple seems to have an issue with Data Loss. Yet another serious bug in OSX.
Thread Tools
SYN
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 15, 2003, 09:54 AM
 
And this one affects ALL Cocoa apps.

If you try to save a file with a name that is *much* too long (say, 1000 characters), OSX will apparently suffer some kind of buffer overflow, and overwrite the Folder you're trying to save that file into. It will warn you that it might over write something, but if you're not paying attention... You could potentially completely overwrite a partition (obviously not the system drive for permission reasons, but any partition), if you're saving at the root of that partition.

I stumbled across this bug trying to understand how my mother had deleted her desktop folder. She just tried to save a web page with a very long title. Safari overwrote her Desktop folder, because she was trying to save it to her Desktop. Destroyed every single file she had, instantly, just because she didn't pay attention to the message.

This is a really severe issue IMHO, my mother's experience has been disastrous. The data can probably not be recovered, I really hope Apple fixes this ASAP
Soyons R�alistes, Demandons l'impossible
     
sideus
Mac Elite
Join Date: Feb 2002
Location: USA
Status: Offline
Reply With Quote
Nov 15, 2003, 10:15 AM
 
Damn those 1000 character long file names! Damn them to hell!
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 15, 2003, 10:20 AM
 
In some SAVE dialogs I'll get a warning that a name is too long. Is this not standard? Sounds like big-time booboo.
TOMBSTONE: "He's trashed his last preferences"
     
SYN  (op)
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 15, 2003, 10:34 AM
 
Damn those 1000 character long file names! Damn them to hell!
As I said, some web pages have titles that long. That's how it happened to my mother.

In some SAVE dialogs I'll get a warning that a name is too long. Is this not standard? Sounds like big-time booboo
It does, if the name is close to the 256 char limit. Not if its in the 1k ballpark...
Soyons R�alistes, Demandons l'impossible
     
theolein
Addicted to MacNN
Join Date: Feb 2001
Location: zurich, switzerland
Status: Offline
Reply With Quote
Nov 15, 2003, 10:41 AM
 
This is a buffer overflow (and a damn bad one at that) and could also be used as a potential exploit. Have you notified Apple about this???? If not, do so, please!

Have you been able to verify this from the commandline as well as from the GUI?

P.S. If you've notified Apple about this and they don't do anything about it (normally they're quite quick with important security related fixes) just submit it to slashdot. They'll have it fixed in no time, then.
weird wabbit
     
SYN  (op)
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 15, 2003, 10:52 AM
 
touching a file with a name that long from the cli doesn't work, the os responds with a "file name too long" error.

I don't really know how to correctly notify Apple. I mean, it could take ages for them to read a bug report posted on http://www.apple.com/macosx/feedback/

Any devs on the Apple mailing lists here?
Soyons R�alistes, Demandons l'impossible
     
lookmark
Mac Elite
Join Date: May 2001
Location: NYC
Status: Offline
Reply With Quote
Nov 15, 2003, 11:04 AM
 
You can join ADC for free. Then report here:

https://bugreport.apple.com/cgi-bin/...s/RadarWeb.woa
     
wadesworld
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Nov 15, 2003, 11:11 AM
 
This bug should be reported via bug reporter. Join ADC (for free) and then you can report it.

http://bugreport.apple.com

Wade
     
SYN  (op)
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 15, 2003, 11:23 AM
 
Originally posted by wadesworld:
This bug should be reported via bug reporter. Join ADC (for free) and then you can report it.

http://bugreport.apple.com

Wade
Done.

Problem ID# :3485338.

Thanks. I hope this is resolved soon. Any data recovery software that might help?
( Last edited by SYN; Nov 15, 2003 at 11:39 AM. )
Soyons R�alistes, Demandons l'impossible
     
Martiny
Fresh-Faced Recruit
Join Date: Dec 2001
Location: Denmark
Status: Offline
Reply With Quote
Nov 15, 2003, 08:08 PM
 
I easily reproduced your problem in 10.3.1 ...it seems that the enclosing folder is just replaced with the file you are trying to save. However, ithe system does warn you that it is going to do exactly that, which is better than nothing **cough** *cough* Filevault issue in 10.3.0 *cough*....

Nice catch ...I hope Apple responds to this quickly...
( Last edited by Martiny; Nov 15, 2003 at 08:16 PM. )
"If you think programming is a small thing, that's why your programs are so large."
- Alan Kay
     
11011001
Mac Elite
Join Date: May 2001
Location: Up north
Status: Offline
Reply With Quote
Nov 15, 2003, 08:52 PM
 
thinks like Norton Utilities can recover those lost files btw. So long as you don't write a whole bunch of new information to your hardrive.
     
mitchell_pgh
Posting Junkie
Join Date: Feb 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Nov 15, 2003, 09:58 PM
 
Ummm, I don't care what anyone says...

Apple should fix this. We shouldn't have this type of issue.
     
Big Mac
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Nov 16, 2003, 12:52 AM
 
Does this affect every OS X release or just Panther?

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
SSharon
Professional Poster
Join Date: Jan 2003
Location: Teaneck, NJ
Status: Offline
Reply With Quote
Nov 16, 2003, 01:12 AM
 
is this just an issue with safari or with any app?
     
SYN  (op)
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 16, 2003, 06:56 AM
 
Seems to happen on all Cocoa apps. I can't reproduce it with GraphicConverter, but Safari and TextEdit reproduce it easily.

I'll try Norton of Data Rescue. Can't seem to make Prosoft's demo dl work though

Thanks guys.
Soyons R�alistes, Demandons l'impossible
     
Morenix
Junior Member
Join Date: Oct 2002
Location: Lisbon or VRSA (Algarve) - Portugal
Status: Offline
Reply With Quote
Nov 16, 2003, 01:01 PM
 
if you're working fast, and do a mistake with Command+C and then when the save dialog appears u press Command+V and Enter. Did you expect the lost your data?

Very, very serious bug.


Yesterday i found something with the textedit. if your cocoa app reaches the dock, when you call the Command+S (with an expanded save dialog) - if you press ESC in the middle of the sheet animation, the sheet will leave incorrectly. also, the app will quit unexpectedly.
made on mac with .mac with a powermac and mac os!
they call it a community, not a monopoly
     
fortepianissimo
Senior User
Join Date: Nov 2002
Location: US
Status: Offline
Reply With Quote
Nov 16, 2003, 02:26 PM
 
Originally posted by Morenix:

Yesterday i found something with the textedit. if your cocoa app reaches the dock, when you call the Command+S (with an expanded save dialog) - if you press ESC in the middle of the sheet animation, the sheet will leave incorrectly. also, the app will quit unexpectedly.
Confirmed here - looks like there're really some rough edges hidden behind...
     
Love Calm Quiet
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Nov 17, 2003, 02:45 PM
 
:bump:
This is making the front page of MacNN, and I'd like to see some further testing by brave souls...
For myself, I appreciate being warned but am not about to *seek* to reproduce the effect. Has the buffer overflow seemed to cause any other disruption? Has anyone successfully reclaimed all the "lost" files in the replaced folder?
TOMBSTONE: "He's trashed his last preferences"
     
SYN  (op)
Senior User
Join Date: Oct 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 17, 2003, 03:05 PM
 
Has the buffer overflow seemed to cause any other disruption? Has anyone successfully reclaimed all the "lost" files in the replaced folder?
All it does is replace the parent folder with the file you're trying to save. There probably is some way to exploit this as a security vulnerability.

I managed to reclaim some of the lost files with Data Rescue X, not all of them though, and some are corrupted beyond repair.

It has been confirmed on the ars forums:

Linky
Soyons R�alistes, Demandons l'impossible
     
BLAZE_MkIV
Professional Poster
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Reply With Quote
Nov 17, 2003, 03:58 PM
 
Wouldn't this be a problem with cocoa not with Panther?
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:04 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,