18,528 karma · joined Jul 16, 2014 (12y ago) · 6,699 submissions
comment 1d ago · link · parent
> 6.3.2.3 Pointers
> A pointer to void may be converted to or from a pointer to any object type. A pointer to any object type may be converted to a pointer to void and back again; the result shall compare equal to the original pointer.
and
> 7.22.1.4 Integer types capable of holding object pointers
> The following type designates a signed integer type, other than a bit-precise integer type, with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, and the result will compare equal to the original pointer:
> intptr_t
intptr_t is not like other integer types. It has special properties and guarantees that other integer types might not, even when they're the same width.
And I think your interpretation about dereferencing may be ruled out by 6.5.10p7:
> Two pointers compare equal if and only if both are null pointers, both are pointers to the same object....
That is, if they compare equal and one is a valid object pointer then the other is a valid object pointer, regardless of whether it was round-tripped through intptr_t/uintptr_t.
comment 1d ago · link · parent
Should the language be made more explicit? Maybe, but any such change opens the door to errors. For example, modified language may need to explicitly account for object lifetimes. Pandering to every imaginative interpretation is a losing game; it's a balancing act, and there are many other higher priority tasks to attend to.
comment 1d ago · link · parent
American culture across the spectrum is obsessed with counter narratives. So people are always digging up random bits of history and current events. But as you point out, the narrative has to be framed in a way that appeals to people and their identity. So on the left you'll constantly see esoteric factoids that bolster oppression narratives, and on the right you see a meta version of that narrative that "debunks" the oppression narratives.
Compared to most media cultures America is awash in "hidden information". It's the framing that's problematic. We may be better off if we dumbed everything down and avoided the pseudo-intellecual arms race.
comment 1d ago · link · parent
comment 1d ago · link · parent
comment 4d ago · link · parent
At the same time, the more I employ overflow checking routines[1], the less interest I have in the whole debate. Those routines cut both ways as they also make it safer to mix signed and unsigned.
[1] GCC/clang builtins, which IIUC the new C2y API mirrors. The return value semantic is unfortunate, especially in C2y where they lack the "overflow" name prefix, but it's understandable why C2y had to copy it.
comment 4d ago · link · parent
For why I think it's unrealistic to go all-in on signed integers in C, it's because sizeof is unsigned, and most APIs dealing with lengths use size_t, and there are many pitfalls when mixing signed and unsigned types.
But I agree that there's a good case for using signed for the task behind that CVE. As I said, there are compelling reasons.
OpenSSL is a case study in the pitfalls with mixing signed and unsigned in C code. A major reason is the careful dance it has to do mixing signed and unsigned, and it stumbles. There's no substitute for being careful with arithmetic, and at least for me, when I expend that effort I also tend to use overflow checking APIs, clamping, etc, because it's less prone to error. Do that and the benefits of signed start to disappear, or at least the debate starts to lose relevance. Why OpenSSL doesn't create and use a set of overflow checking routines is beyond me as it would simplify an incredible amount of very hairy and brittle code.
comment 4d ago · link · parent
comment 4d ago · link · parent
comment 4d ago · link · parent
And to be fair to OpenSSL, it was one of the first widely used crypto libraries, along with Netscape's NSS. Setting aside the reasonablebess of the initial choices, the rapid uptake meant those choices were difficult if not impossible to completely unwind, particularly the style and typing of parameters and error reporting. Even today debates rage about signed vs unsigned, etc, in C and other languages. (But suffice it to say there are still alot of unforced errors, IMO, such as implicit output buffer sizes.)
comment 5d ago · link · parent
Unlike the east coast longshoremen's unions, the west coast unions saw the writing on the wall. The Port of San Francisco containerized (the first one to start, IIRC), but couldn't handle the volume, thus the shift to Oakland. Other west coast ports managed to expand and prosper. By contrast, the Port of New York and other east coast port unions strongly resisted, and ended up with nothing as new containerized ports came online.
I don't remember if I read it in The Box or Philip Dray's There is Power in a Union, but notwithstanding the early radicalism of the longshoremen's union in SF and other lore, west coast unions, at least mid century, were much more cooperative with industry than on the east coast and their members faired technology transitions fairly well. It had alot to do with smart leadership during that period, but perhaps also just the growth of the economy on the west coast.
comment 6d ago · link · parent
It's happening fast, but maybe not so fast that people realize their lived environment is evolving into something much closer to what the US has.
comment 6d ago · link · parent
I think the original jumbogram work occurred back when alot of people were still convinced end-to-end IP alone wasn't suitable for many uses. This was the era when, e.g., people were still pitching ATM or exploring bespoke solutions for linking research centers. So basically jumbograms were presumed to be delivered atop another long-haul, multi-link protocol that would provide reliability. Jumbograms were a way to improve the throughput and latency between IP peers with minimal but high-impact changes to application and kernel network stacks (presuming IPv6 adoption), placing most of the complexity in the network transit layers. What we ended up with, ironically, was the reverse, everything IP and below largely ossified from software perspective, some minor evolution at the TCP layer, but most progress happening above TCP/UDP, and alot of work invested in local hardware link layers that remains opaque to IP or even the ethernet software stack, effectively placing a ceiling on dividends.
comment 6d ago · link · parent
[1] At least without a sophisticated system in place with the states that allows verification without just handing over all the data.
comment 6d ago · link · parent
Also, they will make it increasingly difficult to move around without a REAL ID. This year I took a flight and forgot my passport. SFO was okay with me boarding without a REAL ID. But SAN (San Diego) TSA wouldn't let me through security without REAL ID or purchasing a $50 wavier, which I couldn't do because I couldn't access an e-mail account from my phone and I didn't have access to my laptop, so I had to rent a car to drive back, forfeiting my return ticket. But renting a car without a REAL ID is almost certainly on someone's list of things to fix.
[1] That's why they wanted it in the first place, to make it easier for them to hunt down terrorists and make it harder for people to slip under the radar of pervasive surveillance.
comment 6d ago · link · parent
It's not end-to-end encrypted, nor authenticated for that matter. There's no substitute for DNSSEC, though like a VPN, DoH makes it easier to evade local or regional interventions. (And because I know DNSSEC triggers some peope, I'll point out myself that WebPKI is a proper end-to-end solution that prevents using DNS to MiTM... mostly. Without DNSSEC acme verification techniques are less than ideal.)
Does anyone know how the automatic (non-system) built-in DoH in browsers selects a resolver? I assume they don't globally utilize the same DNS resolvers, as that would break GeoDNS and cause performance issues; at least if those resolvers aren't doing the backend resolution in a way that preserves locality.
comment 1w ago · link · parent
comment 1w ago · link · parent
https://acko.net/blog/how-to-fold-a-julia-fractal/
Note the meat of the tutorial is contained in the frames that you navigate with the arrows on some of the illustrations. It doesn't display well on mobile.
comment 1w ago · link · parent
comment 1w ago · link · parent
comment 1w ago · link · parent
Lots of inferences there, but presuming Spamhaus isn't already blacklisting your IP address then that's additional evidence you don't have a vanilla residential IP address.
comment 1w ago · link · parent
Sadly, plenty of people refuse the anti-cancer HPV vaccine, or at least their parents refuse or neglect treatment. Less than 80% of eligible children have received their first shot, and less than 66% are up-to-date on their course of 3 shots.