FreeDOS/kernel
Bart Oldeman aab06b8a4d Do not use FSINFO structure if it is not present.
Do some range checks on FSINFO values to make sure they are valid. Fixes
issue reported by dos386 on the mailing list.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1631 6ac86273-5f31-0410-b378-82cca8765d1b
2011-06-13 16:27:34 +00:00
..
nls Marked these files as binary, as they are exactly that. 2001-04-25 00:56:03 +00:00
apisupt.asm Use HMA_TEXT instead of _TEXT again. 2003-03-12 22:43:53 +00:00
asmsupt.asm Make sure the DOS native and Linux cross-builds produce identical binaries. 2011-04-09 02:42:51 +00:00
blockio.c No longer force flush1() and dir_write_update() to return TRUE if there 2011-04-08 15:35:23 +00:00
break.c Had to change ctrl-c/ctrl-break handling again... 2004-04-14 15:40:51 +00:00
chario.c Inline cooked_write_char() into cooked_write(). 2009-06-01 13:41:03 +00:00
config.c Allocate bigger chunk of memory for INSTALL for __WATCOMC__ because the 2011-04-09 04:08:20 +00:00
config.h Removed unused config variables and don't detect 'y' and 'n' if we're using 2009-06-17 14:09:57 +00:00
console.asm Use int29 for kernel console output. Enables ansi escape sequences in config.sys once you load nansi.sys. It also saves a couple of bytes. 2004-05-23 22:04:42 +00:00
country.asm sync country source with latest from eduardocasino.es site 2009-07-01 01:50:15 +00:00
dosfns.c If handle valid, close file in PSP table before the low-level close + 2011-04-08 18:27:48 +00:00
dosidle.asm New config.sys (config.c, config.txt) options: IDLEHALT=n to activate 2007-07-21 03:37:53 +00:00
dsk.c from Lucho, there is no any key, don't ask the user to press it 2009-05-11 21:45:12 +00:00
dyndata.h Ran all .c and .h files through "indent" 2001-11-18 14:01:12 +00:00
dyninit.c Removed "Dutch plurals" ("Dutch plural's" ;-)) from the source code: 2007-07-20 20:52:33 +00:00
entry.asm Fix 386 register save/restore (FS & GS destroyed across EXEC - SF bug: 3090610) 2011-05-06 01:46:55 +00:00
error.c Set the Critical Error number immediately after calling a device driver. 2003-09-24 19:34:11 +00:00
execrh.asm removed the "protect 386 registers" patch again, a fixed version of free- 2006-05-20 20:49:59 +00:00
fatdir.c No longer force flush1() and dir_write_update() to return TRUE if there 2011-04-08 15:35:23 +00:00
fatfs.c Truncating a 0-byte file should not fail! 2011-05-09 01:54:48 +00:00
fattab.c Do not use FSINFO structure if it is not present. 2011-06-13 16:27:34 +00:00
fcbfns.c Eliminate dos_setfsize, dos_setftime, and dos_lseek, by just using the SFT. 2009-05-26 20:44:44 +00:00
globals.h Allocate bigger chunk of memory for INSTALL for __WATCOMC__ because the 2011-04-09 04:08:20 +00:00
init-dat.h introduce lol structure for list of lists; avoid lots of relocations 2003-06-15 15:53:58 +00:00
init-mod.h Fix 386 register save/restore (FS & GS destroyed across EXEC - SF bug: 3090610) 2011-05-06 01:46:55 +00:00
initclk.c Workaround for y2k BIOS bugs at the only location where FreeDOS 2008-03-09 16:11:10 +00:00
initdisk.c update sys to current version, adjust printf to support percent modifier, consistent prototype, and handle text not in current segment (FAR *) better, merge part of simplified debug (via prints) support 2009-07-11 16:59:43 +00:00
inithma.c Fix problem with #ifdef DEBUG HMA check. Use more descriptive name 2004-05-24 17:07:04 +00:00
initoem.c Extra check for EBDA move: ramsize == peek(0, RAMSIZE) by Tom Ehlert 2007-05-21 02:16:36 +00:00
int2f.asm Fix 386 register save/restore (FS & GS destroyed across EXEC - SF bug: 3090610) 2011-05-06 01:46:55 +00:00
inthndlr.c update sys to current version, adjust printf to support percent modifier, consistent prototype, and handle text not in current segment (FAR *) better, merge part of simplified debug (via prints) support 2009-07-11 16:59:43 +00:00
intr.asm Ported COUNTRY.SYS support from the unstable branch. 2009-06-09 23:41:50 +00:00
io.asm high-part-of register save fixes from Lucho. 2004-05-30 19:31:07 +00:00
io.inc Changes for kernel 2028 (see history.txt) 2002-12-09 00:17:15 +00:00
ioctl.c This change was missed, as the changelog mentioned it was in 2035a already: 2009-06-09 12:23:14 +00:00
iprf.c Added new build system files, sys documentation, "rm" batch file 2001-11-13 23:45:25 +00:00
irqstack.asm Remove useless END from nls_hc.asm, add explicit byte overrides for older 2011-04-09 02:03:20 +00:00
kernel.asm Allocate bigger chunk of memory for INSTALL for __WATCOMC__ because the 2011-04-09 04:08:20 +00:00
kernel.cfg LBA/FCB/FAT/SYS/Ctrl-C/ioctl fixes + memory savings 2001-07-09 22:19:33 +00:00
lfnapi.c Force near fnode use to use either fnode[0] or fnode[1] instead of the 2009-05-20 18:13:37 +00:00
ludivmul.inc Preserving di in ludivmul.inc: fixes problem with the modulo when 2004-07-24 23:56:32 +00:00
main.c Update copyright, version and changelog. 2011-04-08 19:07:22 +00:00
makefile Remove useless END from nls_hc.asm, add explicit byte overrides for older 2011-04-09 02:03:20 +00:00
memmgr.c Removed "Dutch plurals" ("Dutch plural's" ;-)) from the source code: 2007-07-20 20:52:33 +00:00
misc.c Remove (unused) strncpy. 2003-08-09 09:35:18 +00:00
network.c Reduced number of global int2f/11 entries into int2f.asm to one. 2004-04-21 17:40:12 +00:00
newstuff.c Corrected DEBUG #if to #ifdef for Turbo C and corrected debug printfs in 2009-07-07 13:33:24 +00:00
nls_hc.asm Remove useless END from nls_hc.asm, add explicit byte overrides for older 2011-04-09 02:03:20 +00:00
nls_load.c NLS changes from Steffen 2003-06-27 22:02:57 +00:00
nls.c Use near pointers for printf()s where possible. Problematic is only the 2009-07-18 20:48:44 +00:00
nlssupt.asm high-part-of register save fixes from Lucho. 2004-05-30 19:31:07 +00:00
prf.c Use near pointers for printf()s where possible. Problematic is only the 2009-07-18 20:48:44 +00:00
printer.asm Removed "Dutch plurals" ("Dutch plural's" ;-)) from the source code: 2007-07-20 20:52:33 +00:00
procsupt.asm Fix 386 register save/restore (FS & GS destroyed across EXEC - SF bug: 3090610) 2011-05-06 01:46:55 +00:00
proto.h Use near pointers for printf()s where possible. Problematic is only the 2009-07-18 20:48:44 +00:00
segs.inc Add Linux cross-compile capability, using Open Watcom: 2009-05-19 21:39:29 +00:00
serial.asm Serial code fixes from the FD1.0 kernel. 2006-10-31 21:01:38 +00:00
strings.c Remove (unused) strncpy. 2003-08-09 09:35:18 +00:00
sysclk.c (suggestion from Arkady) 2003-09-09 17:32:20 +00:00
syspack.c Changes for kernel 2028 (see history.txt) 2002-12-09 00:17:15 +00:00
systime.c (with a little help from Arkady) 2003-09-09 17:43:43 +00:00
task.c From Christian Masloch: 2011-04-08 16:04:24 +00:00
turboc.cfg Use PASCAL calling convention by default for turbo C 2003-06-30 18:36:30 +00:00