Subj : src/sbbs3/userdat.c To : Git commit to main/sbbs/master From : Rob Swindell Date : Mon Apr 25 2022 14:21:49 https://gitlab.synchro.net/main/sbbs/-/commit/14940b8a7f261cb137b69035 Modified Files: src/sbbs3/userdat.c Log Message: Fix possible underflow conditions in gettimeleft()If a non-'T' exempt user had already used more time today than their security level allows, their timeleft would be computed as a negative value due to integer underflow. Since the return value of this function is assigned to a ulong (timeleft), this becomes a large positive number. Cap the floor of the computed time left at 0.Also fix the potential for underflow that could occur if the system clock changes while a user is online and 'now' becomes greater than 'starttime'. --- SBBSecho 3.15-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .