From fnaumann@mail.cs.uni-magdeburg.de Mon Oct 4 14:17:04 2004 Date: Mon, 4 Oct 2004 14:15:29 +0200 (CEST) From: Frank Naumann X-X-Sender: fnaumann@wh58-508.st.uni-magdeburg.de To: Olivier Landemarre cc: mint@lists.fishpool.fi Subject: Re: [MiNT] System call bindings In-Reply-To: <41613E8E.2040901@utbm.fr> Message-ID: References: <695F17FC-1546-11D9-92FA-00039357F826@epfl.ch> <4160FEE8.7080203@utbm.fr> <41610495.5050704@utbm.fr> <416118E7.10107@utbm.fr> <41611F45.7000902@utbm.fr> <1096886748.416129dc4504f@imp3-q.free.fr> <41613E8E.2040901@utbm.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Score: -4.9 (----) X-Spam-Report: ---- Start SpamAssassin results -4.9 points, 5.0 required; -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] ---- End of SpamAssassin results X-Scan-Signature: 358e2e207984a4790e33c6cf28180fcd X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: fnaumann@cs.uni-magdeburg.de Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel Hello! >> But this means that any program working in MiNT domain and compiled with an >> old >> osbind.h may crash, since strncpy(..., PATH_MAX-1) may corrupt memory area >> below DTA. >> > Probably no trouble with this because a program compil with Pdomain(1) will > not access to the filesystem with Fsfirst() Fsnext() but with Opendir. That's a very optimistic assumption :-) Especially if we think about the consequences if the assumption is wrong -> program crash or probably more bad things (without memory protection you can easily destroy critical data). > In the > past with old Mint if you put Pdomain(1) without correcting DTA it crash on > long filename, That's wrong. Fsfirst/Fsnext never returned long names. Fsfirst/Fsnext always implemented the ATARI defined interface of 8+3 filenames. Regards, Frank -- ATARI FALCON 060 // MILAN 060 ----------------------------------------- http://www.cs.uni-magdeburg.de/~fnaumann/ e-Mail: fnaumann@freemint.de