2,043 karma · joined Sep 11, 2014 (12y ago) · 353 submissions
New project: https://supplywarden.com
comment 1d ago · link · parent
miniprintf(char fmt[], int val[])
{
int i = 0;
while( *fmt != '\0' ) {
if( *fmt != '%' )
putchar(*fmt);
else
switch(*++fmt) {
case 'd' : putint(val[i++]); break;
case '%' : putchar('%'); break;
default : prterror(*fmt); break;
}
fmt++;
}
}
If the static string was "%", the else branch would move past the end of the string. Assuming prterror doesn't crash the program, this reads out-of-bounds, right?comment 6d ago · link · parent
$FEATURE: increased every six months when new features are released (or removed) $INTERIM: currently always 0, reserved for future use $UPDATE: non-feature releases like bug, security or regression fixes. Releases one month after the feature version; then every three months $PATCH: important updates out of schedule
Specific implementations may introduce a fifth component for updates that do not come from the shared implementation but are distribution-specific (think Oracle fixing a bug that only happens in Oracle distributions)
(Then there's more, like +2 build numbers, and older versions have a slightly different format)
comment 1w ago · link · parent
comment 2w ago · link · parent
comment 1mo ago · link · parent
And there are other countries outside the US and Europe, it's not just a "EU" thing. (I wanted to write North America first, but even Canada does blocking, in some cases even without court orders [3])
[1] https://www.eff.org/deeplinks/2025/04/congress-reviving-site... [2] https://www.eff.org/deeplinks/2026/10/congress-has-another-s... [3] https://piracymonitor.org/canada-evolving-piracy-threats-pro...
comment 1mo ago · link · parent
Generally with acts like these: You don't have to be fully compliant in practice. You need to know how compliant you are, have a plan to improve things, and prove that you are working on it. But if you are "close enough" (depending on who audits you), non-compliance isn't a direct route to fines.
comment 1mo ago · link · parent
However, it doesn't change the behavior much: LinkageErrors can also happen any time at runtime, not necessarily during startup. Just like the MatchException.
comment 1mo ago · link · parent