- Jul 04, 2023
-
-
Rob Swindell authored
Caught be GCC ASan.
-
Rob Swindell authored
This does look like a false positive to me: the if clauses that use fptr appear to only cover the same values as the switch-case statements. But harmless defensive change here.
-
- Jun 29, 2023
-
-
Rob Swindell authored
Updated Tech question pool. Now valid until 6/30/2026 See merge request !295
-
-
Rob Swindell authored
warning: format not a string literal and no format arguments [-Wformat-security] <nelgin> gcc version 9.4.0
-
- Jun 28, 2023
-
-
Deucе authored
The commit just the zero-length behaviour from uninitialized use with possible undefined behaviour to guaranteed undefined behaviour.
-
- Jun 27, 2023
-
-
Deucе authored
It's unlikely this is what Digitalman reported from ASan and UBSan
-
Rob Swindell authored
-
Rob Swindell authored
Fix multiple warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
-
Rob Swindell authored
This was really just a test to make sure I had Geany successfully reconfigured to no longer auto-strip trailing whitespace. Spoiler: It wasn't.
-
- Jun 26, 2023
-
-
Rob Swindell authored
As Deon pointed out on DOVE-Net::Synchronet Discussion. Thanks!
-
Rob Swindell authored
This macro hasn't done anything meaningful since we stopped using really old versions of Borland compilers (and std libraries) where strerror() returned a string terminated with a line-feed (\n) character.
-
Rob Swindell authored
These should only be used in the sbbs_t methods called by node_thread or event_thread. Any other thread-shared sbbs_t instances should not use these methods since they share a single error description string buffer.
-
Rob Swindell authored
As reported by Deon on DOVE-Net: type 2.2 packet generation was not (since SBBSecho v3.0) setting the origin and destination point values correctly: was leaving the packet type 2.0 date values in these fields. Also, zero-out the reserved bytes in the type 2.2 packet header (don't leave the type 2.0 date values in there). Thanks for the report Deon!
-
- Jun 24, 2023
-
-
Rob Swindell authored
If the oldlen param value is less than one, set to a sane non-zero value (79). Fix issue #576
-
- Jun 18, 2023
-
-
Rob Swindell authored
this is recommended to reliably display the call stack when using the print_stacktrace option.
-
Rob Swindell authored
left shift of 255 by 24 places cannot be represented in type 'int'
-
Rob Swindell authored
<phigz> what would you convert ansi to so it displays right when written out from a .js file? Now, you can use 'ans2asc -esc' for this purpose.
-
- Jun 17, 2023
-
-
Rob Swindell authored
e.g. running '../cleanall.sh' from the src/sbbs3 dir
-
Rob Swindell authored
As reported by GCC 10.2 with FORTIFY=1 and SANITIZE=1
-
Rob Swindell authored
Not sure how I missed this before <shrug>
-
Rob Swindell authored
This should fix the SBBS-MSVC build in CI.
-
- Jun 16, 2023
-
-
Rob Swindell authored
This utility doesn't expand Ctrl-A codes, so just strip them.
-
Rob Swindell authored
The InactivityAlert string is sent as a warning before disconnect when a visible alert (AreYouThere) shouldn't be sent. Defaults to 3 beeps. Remove the content of the NodeActionMultiChat (over-rides the hard-coded default node status) - weird that this was the only node status that reported the user's security level in the default configuration. This has been this way since sbbs v2.30, at least. I think it was to be sure that others could see the age/gender of those they were chatting with. But we have other methods of reporting that in node status now, so we don't need to use this override string to accomplish that.
-
- Jun 15, 2023
-
-
Deucе authored
It appears that XDG_ENVIRONMENT_TYPE will always equal "wayland" when XWayland is in use, so when we see that, switch to CLIPBOARD instead of PRIMARY. This should fix WSL and ChromeOS, and be irritating on GNOME, so it's a win all around.
-
Rob Swindell authored
The directories of the *first* library was always the target of the (new) "Clone Settings" option. We're using a dir_t for each lib's dir_defaults, but that doesn't mean the dir_defaults.lib is initialized to a correct libnum (it's not), so don't use it.
-
- Jun 13, 2023
-
-
Deucе authored
Still be sure to check the return value of write() though.
-
Deucе authored
-
Deucе authored
-
Rob Swindell authored
The return value of x11_event() isn't actually checked anywhere currently, but still Deuce might want to adjust the new return value here (__LINE__ or -1?). Some indicental trailing whitespace was auto-cleaned up part of this commit. Unexpected as I thought this code had been uncrustified already.
-
Deucе authored
-
- Jun 12, 2023
-
-
Rob Swindell authored
Should use safe_strerror() here instead... later.
-
Deucе authored
Fixes recent regression with scfg
-
- Jun 11, 2023
-
-
Rob Swindell authored
nopen.c:37:15: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' nopen.c:39:18: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' userdat.c:251:111: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' There are lot of 1<<31 macro definitions in this repo, so I'm expecting a lot more of this type of fix to be required to make UBSan happy.
-
Rob Swindell authored
-
Rob Swindell authored
e.g. runtime error: store to misaligned address 0x7ffec33195e3 for type 'short int', which requires 2 byte alignment These aren't a problem for x86, but could be a problem for some other CPU architectures that don't support unaligned access. I didn't use memcpy() to resolve this (though that would've worked) to make this change endian agnostic.
-
Rob Swindell authored
... declared with attribute ‘warn_unused_result’
-
Rob Swindell authored
the hash lib dependency was missing
-
Rob Swindell authored
scfgsys.c: In function ‘edit_sys_delmsg_policy’: scfgsys.c:498:3: error: case label does not reduce to an integer constant 498 | case SM_USRVDELM | SM_SYSVDELM: scfgsys.c:504:3: error: case label does not reduce to an integer constant 504 | case SM_SYSVDELM:
-