Better HN
topnewbestaskshowjobs
Log inSign up

wahern

18,528 karma · joined Jul 16, 2014 (12y ago) · 6,699 submissions

Submissions

comment 15h ago · link · parent

Put a randomized URL in it and try to make sure it doesn't leak online. Then track your web server logs to see if someone or something scans the QR code, say through surveillance footage.

comment 1d ago · link · parent

From C23 (N3220), compare

> 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

The standard copies the same language used for defining void pointer conversions, that you can convert any object pointer to a void pointer and back again and the result will compare equal. So your interpretation would also necessarily imply the standard doesn't guarantee you can dereference such a pointer. In legal textual analysis that would count as an absurdity, meaning it's obviously not a reasonable interpretation.

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

I'm not quite sure I follow your second paragraph.

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

Pure conjecture, but in modern American history reference to Nubians may elicit memories of the mid-20th century Black Power movement, which nominally revived knowledge of that history but effectively coded it as a peculiar African-American cultural reference. IOW, alot of Americans, especially middle-aged and older Americans, might (unconsciously) feel awkward using that term. The Black Power history is largely forgotten, but lives on in memory through music and film memes, e.g. "Nubian queen" (slang for a beautiful, proud black woman) or the related but negative epithet "Nubian princess" (slang for, e.g., a black female in a mixed-race relationship).

comment 1d ago · link · parent

It stems in part from resentment about lockdown rules. There was alot of chatter about proxy voting in some legal and political circles at the time, and presumably this case was a two-fer--a challenge to a law they would have (unsuccessfully) fought, anyhow, but now have a technical hook to spite those who "overreacted" to COVID.

comment 4d ago · link · parent

I'll have to more carefully read some of your code sometime. Any links to good exemplars? I'll admit I should be more amenable to making use of signed, and I wouldn't have said that several years ago.

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

From a brief look, I'd say there were several wrong turns made that led to the CVE-2026-123007 overflow bug.

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

Yes, they collaborate. BoringSSL and libressl especially, which IIRC share some of the same developers. But OpenSSL has it's own priorities and vision, which sometimes (often?) clashes with the sensibilities of the BoringSSL and libressl developers. Because OpenSSL is still the de facto standard bearer and developer target, it can get frustrating for the libressl and BoringSSL developers, especially when they zig and OpenSSL decides to zag.

comment 4d ago · link · parent

Not everybody recommends size_t. There's a sizeable community of people absolutely convinced most integers, including length and capacity integers, should be signed. And they stick to their guns even for C and C++. They have some very compelling logical arguments on their side, but IMO in languages like C and C++ they're just fatally unrealistic.

comment 4d ago · link · parent

To be fair, frustrations with OpenSSL long preceded Heartbleed. Heartbleed was just the final straw for those who forked libressl and BoringSSL.

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

> The Port of San Francisco used to be a major port. But, when containers came along, a new container port was built in Oakland. One that didn't have an entrenched longshoreman's union.

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 a system that's changing, though, becoming closer to the US. Frances' village shops culture has been in terminal decline for many years, losing business to big box stores: https://www.nytimes.com/2017/02/28/world/europe/france-albi-...

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 just cannot imagine the error correction on those packets. I mean if anything goes wrong that's a lot to toss away.

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

I didn't mean to excuse ID.me. Just that the question seemed to presume a national ID card, or that it should be trivial for the federal government to verify a state ID[1]. IOW, it presumed something like REAL ID.

[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

ICE has proven people's fears about the Federal government compiling databases and using facial recognition systems with handheld readers and massive surveillance networks so they can sic jack-booted thugs on people. It doesn't matter they were "targeting" illegals, every aspect of the fear was proven out in horrible fidelity, and nobody was able to pump the breaks before scores of people were murdered in cold blood. REAL ID isn't strictly necessary for that to happen, but it certainly helps[1], and it moves us in the wrong direction. There's a similar threat from states, but that's a separate problem and doesn't justify letting the Federal government have its way.

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

Principle. I'm not in favor of a ubiquitous national ID that everybody will by necessity need to carry around.

comment 6d ago · link · parent

> Why the government can’t/won’t verify their own IDs they hand-out boggles the mind.

Slow your horses. To answer your question, I for one refuse to get a Real ID drivers license. (I do have a passport, but that's beside the point.)

comment 6d ago · link · parent

> Now the messaging channel is encrypted. At this point you have the same confidence in security as you do when looking at https web sites.

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

You're describing Go. Only difference was Go settled on GC, to avoid alot of semantic complexity with memory management across threads.

comment 1w ago · link · parent

You can do zone delegation of smaller than /24 subnets using CNAME RRs as part of the hack. See https://kb.isc.org/docs/aa-01589 But for a single /32 I guess the delegation is a pointless step and you should just CNAME straight to another remote record, unless there's something special about keeping all PTR record names under the .arpa hierarchy. (I forget if that's an issue.)

comment 1w ago · link · parent

FWIW, you can host just the PTR record/zone and keep everything else as is. But probably just better to have the ISP serve the PTR record. Unless it's IPv6, then it might be useful to have a delegation for the subnet.

comment 1w ago · link · parent

This is a great tutorial on imaginary numbers illustrating how complex numbers : integers :: integers : natural numbers (apologies for not figuring out how to use reals instead integers in that simile).

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

Have you asked, yet, about a PTR record? Not every ISP has a DNS system tied into a web portal for automated edits. Even some large ISPs still manange their zones through traditional zone files. But that doesn't mean they don't support modifying PTR records for customers. It may be just a matter of you putting in a request and some greybeard sysadmin resolving the ticket by firing up vi or emacs to edit one of their zone files. This might even be preferable because it's more likely they'd be open to delegating d.c.b.a.in-addr.arpa to your own DNS server. That would allow you to add and modify PTR records without having to go through them each time, whether manually or through some bespoke web service.

comment 1w ago · link · parent

A reputable and conscientious VPS provider will rigorously block outbound port 25. Some of those allow you to request outbound port 25 on a discretionary basis. If they're quick to respond to complaints then their address blocks should be pretty clean. You can always lookup your assigned address in various blacklists and roll the dice again on a new instance if you get a bad one. Ditto if you find Google or Microsoft doesn't like it, either.

comment 1w ago · link · parent

If you have a static IP address and they're allowing outbound port 25 then my first thought is that you might have some sort of premium residential or business account that permits hosting in the ToS, in which case I would then infer they might allow you to specify a PTR record in their zone or maybe even support delegation to you.

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

> Imagine refusing a cancer or heart disease vaccine, if those existed.

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.

12345
224