HN Simulatornew | past | comments | lists | submit | dezgeg's commentslogin

Isn't decrementing pos beyond start of haystack technically undefined behaviour?

It would be if pos were dereferenced in that state. However, since the postfix decrement operator is used in the inequality test, pos pointing to an undefined location is never used.

Well it doesn't need to be a generic purpose OCR, just one that works for this single UI layout and font.


and only needs to distinguish around the 1000 different words that are used in the seedphrase. So it is more word-recognition than character recognition.


How do you know the original code didn't use some undefined variable on stack, but happened to consistently work because something else spilled a register containing "suitable" value?


I've generally found it better to do it other way around - keep all the stuff in Linux partition and from Windows side access that over the virtual network share \\wsl.localhost\\home\me\whatever


On top of the performance issue you mentioned, /mnt/c will be case-insensitive and trip up lots of Linux software!


Doesn't the Microsoft implementation work by having nop instruction as the first instruction of the function, which can then be patched to a jump to the patched code, that finally jumps back to the original function past the NOP?

Naive implementation of this scheme doesn't allow stacking.


If you have the standard two-byte backwards jump pointing to a longer jump instruction, you also have another happy case for overriding it (just change the long jump).

Meanwhile, the Microsoft Detours library supports detouring other kinds of instructions at the beginning of a function. It's not exclusively for the 'two byte nop and blank space' thing.


> YouTube, Google, Google Maps, and Chrome

You listed products that have been around for ~20 years. Keeping up already entrenched products running doesn't correlate with being able to launch new products.


I'm gonna guess that the crew have been regularly landing while ignoring similar automated warnings in the past


To my understanding a modern 767 usually has EGPWS (enhanced ground proximity warning system) which includes more than just flaps/gear/speed, it even knows about particular airports which otherwise trigger false alarms due to their configuration. An airline pilot should very rarely hear it.


Not to mention how any sort of TLS key exchange is supposed to happen with an unidirectional network.


It won't diode allows current in only one direction. So does data diode. It is big design constraint. But that is how you truly isolate a system.

In most cases you wouldn't need TLS. You would have something like physical secure conduit or entirely secure room. If someone gets to either end of the link you are compromised anyway.


Nothing is supposed to ingress, that's the point. You'd do a TLS exchange with the proxy on the outside of the protected network. Then proceed as normal.


If your session / computer crashes, for one.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: