Wildroot

Queries may use an external AI service. Details

Wildroot Browser

TodayTechSimilar posts

Similar posts

@simontatham@hachyderm.io

This code was in PuTTY for less than a year. But in that time it managed to expose a bug in a C compiler. It was a small, independently written compiler (none of the huge code bases everyone's heard of now). We had an email from its maintainer to let us know – and to ask us what the code was _meant_ to do, because fair enough, it isn't obvious to everybody at first glance!

Show more of this post

The bug was that the compiler optimised away if (0) { ... } statements, on the theory that they were unreachable. But the code in these if (0) statements _is_ reachable, via the case labels related to the containing switch. So the compiler had thrown away code that was actually needed, and then got confused when it couldn't generate the jump for those switch cases. (The more usual strategy is to start by turning the whole function into a control-flow graph, i.e. blocks of straight-line code in a directed graph connected by edges that are effectively gotos. Then you can optimise conditional branches based on a constant into unconditional branches, deleting the never-traversed graph edge out of their block. Then you detect unreachable code by a search through the graph from the function entry point. That strategy avoids this problem.)

Popular todayprobably Tech

3 posts close in meaning, closest first

  1. @kbytech@mastodon.social

    The Ruby project's 18 November advisory covers seven flaws in its regular expression engine and string case conversion. The team says proof-of-concept code shows remote code execution for five. Fixes are in 4.0.10, 3.4.13 and 3.3.14; Ruby 3.2 and earlier are end of life. Our write-up lists where an unexpected Ruby tends to hide: distribution packages, bundled self-hosted apps, and agency-built sites. kbytechnologies.com/news-secur… #Ruby #InfoSec

    A developer typing code on a laptop
    Similar topic and wordingInfoTech
  2. @undolog@hachyderm.io

    Netfox 0.55.1: an address is not an identity, and a feed is not trusted until it is signed. The alert. Netfox finds devices several ways at once: the ARP table, Bonjour, SSDP, active probes. A smart TV often speaks SSDP before it shows up in ARP, so the first record of it carried an IP address and nothing else. Records are keyed by MAC or hostname; this one had neither, so it got an identity of its own, was stored, and raised a "New device" alert for a TV Netfox had known for months. Once ARP supplied the MAC it folded into the known device, but the alert had already gone out.

    Show more of this post

    Now a record with no MAC, no hostname and not this Mac is neither stored nor alerted on: the alert waits for an identity. The updates. The feed has been EdDSA-signed since 0.52.4, inert for installed copies. 0.55.1 turns on both updater settings together: the app requires a signed feed, and verifies an update's archive before extracting it. The release notes the feed links are signed too, since with those settings on, unsigned notes are refused. Before shipping, a build with both on updated from a local feed: a valid update installed with its notes, a tampered one was refused. Also: a TCP reset right after accept now reads open, a refusal still reads closed. netfox.app discord.gg/rdWu5yFCR6 youtube.com/@Netfox-app netfoxapp.substack.com #macOS #Swift #Networking #HomeLab #Security

    Netfox's Devices window with the Alerts sheet open over it: four new alerts, among them New device: TV #1 with its maker, address and masked hardware address, a Telnet warning on a new router, and Speaker #1 is back. Sample data from Demo Mode.
    Similar topic and wordingInfoTech
  3. @ymaoka@iosdev.space

    Ryoyomi-dev #18 When a page couldn't load, Ryoyomi said nothing. I tapped Reload, nothing seemed to happen, and I couldn't tell why. Now it says why: no internet, site not found, the site is down, or a secure connection it couldn't confirm (no "open anyway" for that one). My first version was plain text in a big box. Version 2: an icon, a short title, details, and Try Again. Silence is a bug too. #buildinpublic #iosdev #indiedev #SwiftUI

    Before: Ryoyomi after trying to open no-such-site.invalid, an address that can never exist. The page is nearly blank, with one large box at the bottom: "Couldn't find no-such-site.invalid. Check that the address is right." and a big blue Try Again button.After: the same address in the new design. The whole page area shows a gray magnifying glass, the bold title "Site Not Found", the gray text "Couldn't find no-such-site.invalid. Check that the address is right." and a Try Again button.
    Similar topic and wordingTech