ときどきの雑記帖 RE* (新南口)
Binary Star
4Kg
某スーパーで米がちょっと安かったので ほうと近寄ってよく確かめてみたら 5Kg入りの袋ではなく4Kg入りの袋だった というオチ。
いつもは5Kg入りのものが積まれていた棚だったのよね
Gemini
Geminiによるフィギュア再配置。 - Manualmaton’s Laboratory
なるほどこういう使い方が。
21st century C++
配信
【公式】「MASTERキートン」第1話『迷宮の男 / A MAN IN LABYRINTH』期間限定本編配信 - YouTube
配信するのは3話までっぽい。
Firefox
firefoxのソースコード管理がgithubに
They made the decision to move from hg.mozilla.org to GitHub last year. They are in the final legs of that migration.
Multiple security issues in GNU Screen
strncpy
Multiple CVEs in GNU Screen: Local Root Exploit and TTY Hijacking Discovered https://securityonline.info/multiple-cves-in-gnu-screen-local-root-exploit-and-tty-hijacking-discovered/
Buffer Overflow Due to Misuse of strncpy()
While not assigned a CVE, a non-exploitable buffer overflow in Screen 5.0.0 could lead to crashes when users attempt to send commands to an active Screen session with multiple arguments. The bug stems from an improper replacement of strcpy() with strncpy().
This has been observed in Arch Linux, where the application crashes with FORTIFY_SOURCE protections enabled.
improper replacement とは? と思ったのだけどこういうことらしい
- Multiple security issues in GNU Screen | Hacker News
- oss-security - screen: Multiple Security Issues in Screen (mostly affecting release 5.0.0 and setuid-root installations)
3.f) Bad
strncpy()
Use Leads to Crashes when Sending Commands
for (; *av && n < MAXARGS - 1; ++av, ++n) { size_t len; len = strlen(*av) + 1; if (p + len >= m.m.command.cmd + ARRAY_SIZE(m.m.command.cmd) - 1) break; strncpy(p, *av, MAXPATHLEN); p += len; }
ああ、そういう…
fix bad strncpy() which can lead to a buffer overflow - screen.git
swift 6.2
前回、プログラミング言語の識別子に空白が云々という話を書いたら こんな話題が流れてきた。 また西亭新九郎が暗躍?
What’s new in Swift 6.2? – Hacking with Swift
Raw identifiers
So, this kind of code is legal in Swift 6.2 and later:
func `function name with spaces`() { print("Hello, world!") } `function name with spaces`()
What’s new in Swift 6.2? : r/programming
misc
MIDA
今一つ「からくり」がわからん😓
// For C89 holdouts (respect for maintaining 35-year-old code)
- GitHub - lcsmuller/MIDA: MIDA (Metadata Injection for Data Augmentation) is a lightweight C library that adds metadata tracking to C native structures.
- MIDA/mida.h at master · lcsmuller/MIDA · GitHub
VB
The History and Legacy of Visual Basic | Hacker News
How Visual Basic became the world’s most dominant programming environment, its sudden fall from grace, and why its influence is still shaping the future of software development.
The History and Legacy of Visual Basic | Hacker News
Hi! I was the lead developer for Ruby (no relation to the programming language), which became the “visual” side of Visual Basic.
Dusk OS C Compiler
Forthで書かれたCコンパイラー?
The C compiler is a central piece of Dusk OS. It’s written in Forth and is loaded very early in the boot process so that it can compile the drivers it’s about to use.
- ~vdupras/duskos (master): / - sourcehut git
- Dusk OS: An operating system for the end of the world : r/programming
FORTRAN Compiler on IBM 704
p.34
Notice that several CIT’s are stored on tape during the run of the executive routine. There is only one standard four-word format for CIT’s:
Decrement | Address | |
---|---|---|
Word 1 | (IFN) Internal formula No. | Instruction number within formula number |
Word 2 | Operation code of Instr. in SAP mnemonic | Decrement of Type A instruction |
Word 3 | Symbolic address (BCD) assigned by executive routine | |
Word 4 | * | Symbolic tag |
- Decrement of Word 4:
Fortran I - The subscript, if any, of the symbolic address.
Fortran I1 and 709 - Relative absolute part of address of the instruction; for example, in CLA N + 3 The + 3 would be entered into this field.
Hugoメモ
五芒星
📕 初心者向け「 #SYCL プログラミング入門」公開!
— 株式会社フィックスターズ (@Fixstars_JP) April 3, 2025
SYCLなら複雑な並列処理を簡単に記述し、多様なハードウェアで高性能なアプリ開発ができます。 基本的な構文・用語からビルドの仕方、複数デバイスでの実行まで、安心のガイドです💻 ✨ 記事は👇 https://t.co/sPudGZfP9W
アイコンがノイエ銀英伝での同盟の五芒星になんとなく似ているような
登場人物≪自由惑星同盟≫|アニメ「銀河英雄伝説 Die Neue These」公式サイト
Z
お前らがZ世代なら俺らはZ80世代じゃい!
— Shigeki Watanabe (@etic_sgk) May 12, 2025