Custom Query (245 matches)
Results (46 - 48 of 245)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#273 | fixed | fcntl() fails | ||
Description |
given this code: fl.l_type = rw; fl.l_whence = SEEK_SET; fl.l_start = off; fl.l_len = len; fl.l_pid = 0; if (waitflag) return fcntl(tdb->fd, F_SETLKW, &fl); else return fcntl(tdb->fd, F_SETLK, &fl); where len == 0 and off == 692 libc produces this log: 014759df 01 04 0004 Entr 0000 __fcntl_locking: fh=3 iRequest=9 pFlock=0x025bedf8 014759df 01 04 0004 ErrL 0000 __fcntl_locking (0 ms): D:/CODING/LIBC/0.6/src/emx/src/lib/sys/b_ioFileControl.c(334): 014759df 01 04 0004 ErrL 0000: ret -EINVAL - Invalid offStart=2b4 cbRange=7fffffffffffffff 014759df 01 03 0004 ErrL 0000 __libc_Back_ioFileControlStandard (0 ms): D:/CODING/LIBC/0.6/src/emx/src/lib/sys/b_ioFileControl.c(178): i guess this libc check is wrong: if ( offStart < 0 || cbRange + offStart < 0) LIBCLOG_ERROR_RETURN_MSG(-EINVAL, "ret -EINVAL - Invalid offStart=%llx cbRange=%llx\n", offStart, cbRange); in the case that cbRange is OFF_MAX the check should also succeed. |
|||
#271 | fixed | Build break when building GS 8.71 | ||
Description |
As explained to Dmitriy and Silvan. gcc -DHAVE_LONG_LONG -Zomf -o obj\genarch.exe base\genarch.c emxomf: Input file `X:\TEMP\ccwOlfDg.o' is not an a.out file emxomfld: a.out to omf conversion failed for 'X:\TEMP\ccwOlfDg.o'. NMAKE : fatal error U1077: 'D:\OS2\CMD.EXE' : return code '1' Stop. This is 100% reproducible here. |
|||
#270 | fixed | opendir() and a too long path | ||
Description |
Hi/2. opendir() assumes that a path length is enough smaller than MAXPATHLEN. So if a path length is longer than MAXPATHLEN, a stack is corrupted. To fix this, nbuf should not be declared statically using MAXPATHLEN. Instead, it should be declared dynamically using malloc() in according to a length of 'name'. |
Note: See TracQuery
for help on using queries.