AmendHub

jcs

/

subtext

/

amendments

Amendments on July 24, 2022

tcp: Don't bother manually zeroing open options

This whole struct has already been zeroed with memset.
jcs made amendment 222 about 1 year ago

Amendments on July 29, 2022

settings: Fix bogus free

jcs made amendment 223 about 1 year ago

Amendments on July 31, 2022

util: Add note parameter to xmalloc, xcalloc, and xrealloc

If THINK C supported __func__ this would be much easier, but for now
we have to manually annotate every allocation. This will help find
the source of memory leaks.
jcs made amendment 224 about 1 year ago

bile: Pass object size to bile_unmarshall_object to check for overflow

Also add malloc annotations
jcs made amendment 225 about 1 year ago

*: Add malloc annotations

jcs made amendment 226 about 1 year ago

Amendments on August 3, 2022

util: Support malloc map compaction by toggling a variable

jcs made amendment 227 about 1 year ago

bile: Better malloc notes

jcs made amendment 228 about 1 year ago

db: Better malloc notes

jcs made amendment 229 about 1 year ago

sysop: Pass malloc notes to bile

jcs made amendment 230 about 1 year ago

user: Rename user_find_username to user_username

This function isn't looking up something from bile that needs to be
freed, it's just checking its cache.
jcs made amendment 231 about 1 year ago

board: Fix some memory leaks, pass malloc notes to bile

jcs made amendment 232 about 1 year ago

folder: Fix some memory leaks, pass malloc notes to bile

jcs made amendment 233 about 1 year ago

mail: Fix a memory leak, pass malloc notes to bile

jcs made amendment 234 about 1 year ago

session: Fix some memory leaks

jcs made amendment 235 about 1 year ago

uthread: Pre-allocate threads, put gaps between each stack

Add a verification function that verifies that each gap hasn't been
written to.
jcs made amendment 236 about 1 year ago

serial: Rewrite to allocate session on RING, then manually answer

If we can't allocate a session, just don't answer.
jcs made amendment 237 about 1 year ago

Amendments on August 11, 2022

logger: Include free heap size in titlebar

jcs made amendment 238 about 1 year ago

uthread: Crank stack sizes for each thread

Something having to do with QuickDraw operations puts a ton of stuff
on the stack momentarily, which was writing into our stack gaps with
3K stacks. I haven't been able to figure out what actually causes
it, but when the logger window is disabled, it never happens.
Move defines into uthread.c file so they can be tweaked without having
to recompile everything.
jcs made amendment 239 about 1 year ago

telnet: Increase IAC SB buffer, log when it overflows

macOS telnet clients have a very long DISPLAY variable that was
reaching our limit of iac_sb, which then spilled into the login field
since we stop treating further data as IAC SB data.
jcs made amendment 240 about 1 year ago