• src/syncdraw/load.c

    From rswindell@1:103/705 to CVS commit on Sun Nov 11 14:28:37 2018
    src/syncdraw load.c 1.6 1.7
    Update of /cvsroot/sbbs/src/syncdraw
    In directory cvs:/home/rswindell/sbbs/src/syncdraw

    Modified Files:
    load.c
    Log Message:
    Attempt to address crash (segfault) reported by ragnarok, maybe
    buffer overflow caused by long-filenames (?) :

    Thread 2 "SDL Main" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7ffff0be5700 (LWP 31102)]
    strlen () at ../sysdeps/x86_64/strlen.S:106
    106../sysdeps/x86_64/strlen.S: No existe el fichero o el directorio.
    (gdb) bt
    #0 strlen () at ../sysdeps/x86_64/strlen.S:106
    #1 0x00007ffff6f10da8 in _IO_vfprintf_internal (s=s@entry=0x7ffff0bc2230, format=<optimized out>, format@entry=0x55555558ec5c "%-12s ",
    ap=ap@entry=0x7ffff0bc2378) at vfprintf.c:1637
    #2 0x00007ffff6f31afb in __IO_vsprintf (string=0x7fffec00b0c0 "\310\a", format=0x55555558ec5c "%-12s ", args=0x7ffff0bc2378) at iovsprintf.c:42
    #3 0x000055555556a701 in bufprintf (buf=0x7ffff0bc2480 "", attr=31, fmat=0x55555558ec5c "%-12s ") at miscfunctions.c:560
    #4 0x000055555555e332 in load () at load.c:796


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sat May 22 22:37:15 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/20d67375336064d6c3e7d0f0
    Modified Files:
    src/syncdraw/load.c
    Log Message:
    Treat .msg files the same as .asc when loading.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed Feb 21 07:20:30 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/799970d037d697f1e34d668d
    Modified Files:
    src/syncdraw/load.c
    Log Message:
    Remove apparently unused errno declaration.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Apr 14 20:57:49 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/3bca2420ea5657a72d67708d
    Modified Files:
    src/syncdraw/load.c
    Log Message:
    Fix potential buffer overflow some long ANSI sequences

    Increase ansicode[] buffer size from 20 to 200 bytes due to this observed
    crash when attempting to load an ANS file saved from PabloDraw:
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)