台風
25号
自分の住んでいるあたりはわりと強めの雨が長時間続いてはいたけど とんでもない降りというのはなかった感じ。 てか三浦半島がすごいことになっててびっくり (千葉もちょっと前にもひどい雨があったのに…)
「赤い帯」がすこーしずれていたら…とちょっと背筋が寒くなったですね
24時間雨量もこんな感じなので、千葉と三浦半島は所によって「一生に数回あるかないかの災害に見舞われた」とも言えるでしょう。
— にゃんこそば🌤データ可視化 (@ShinagawaJP) September 22, 2026
逆に23区で被害が小さかったのを見て、安易に「土木の勝利」「首都は巨額の予算で守られている」みたいな話にするのも違うよね・・・という感覚です。 pic.twitter.com/eiGlY9u7GT
台風25号では「1時間100mm」の豪雨こそ降りませんでしたが、強い雨が降り続いたことで土砂災害が相次いでいます。
— にゃんこそば🌤データ可視化 (@ShinagawaJP) September 21, 2026
防災科研の推計によると、横須賀市では72時間実効雨量(土の中の水分量の目安)が50~100年に一度のレベルに。
最新の情報は防災科研のサイトで確認できます。https://t.co/mFWXsUEgPL https://t.co/aHiHeVxVMD pic.twitter.com/PFLdwUF1Hy
GNU sed
とあるコミット sed: revert “deal with musl-like mbrtoc32 …” - sed.git - GNU stream editor を眺めていたら
diff --git a/sed/sed.h b/sed/sed.h
index 6e8ce06..a520955 100644
--- a/sed/sed.h
+++ b/sed/sed.h
@@ -291,22 +291,13 @@ extern bool sandbox;
/* If set, print debugging information. */
extern bool debug;
-/* Convert to S the character CH. S must point to at least MB_LEN_MAX bytes.
+/* Convert to S the character CH.
Return the number of bytes in S's representation. */
SED_INLINE idx_t
c32rtomb1 (char *s, char32_t ch)
{
mbstate_t mbs; mbszero (&mbs);
- size_t nbytes = c32rtomb (s, ch, &mbs);
- if (nbytes == (size_t) {-1})
- {
- /* This can happen if the Gnulib mbrtoc32 is in use in the C locale,
- and has converted (e.g.) '\xE8' to 0xDFE8. Translate it back
- by assigning, which keeps only the low 8 bits. */
- *s = ch;
- nbytes = 1;
- }
- return nbytes;
+ return c32rtomb (s, ch, &mbs);
}
/* Use this to suppress gcc's '...may be used before initialized' warnings. */
(size_t) {-1}のように中かっこつけるんだ。と気になった。
sedに限らずほかでこうやってるとことあっただろうか?(調べない)
gzip
gzip 1.15、初版から34年残っていたバッファオーバーフローやファイル誤削除を修正
今回のリリースで修正されたバグ9件のうち、8件に「初版から存在」のタグが付いている。
中でも深刻なのは、別のプロセスがgzipの出力先の祖先ディレクトリをリネームした場合に、 ファイルを誤って削除する可能性があったバグと、.Zファイルの展開直後に.lzhファイルを 展開すると起きるバッファオーバーフローの2件となる。前者はデータ消失に直結しうる レースコンディション(複数の処理が同時にファイルシステムを操作することで起きる競合) であり、後者はメモリの安全性に関わる問題で、悪意ある入力によって予期しない動作を 引き起こす可能性がある。
ほかにも、.lzhファイルを連続して展開すると前のファイルのデコードテーブルが残って 出力が破損する問題や、不正な入力に対する未初期化メモリの使用など、34年間潜んでいた 問題が一括で修正された。
なんか気になったので(謎)、ソースコードや修正差分を眺めてみたけど いまひとつピンとこない…>バッファオーバーフロー
* Noteworthy changes in release 1.15 (2026-09-20) [stable]
** Bug fixes
gzip no longer can mistakenly remove the wrong file if some other
process simultaneously renames a gzip destination's ancestor.
[bug present since the beginning]
gzip -d no longer rejects PKZIP signatures, local header, and data
descriptors. These can appear in well-formed streamed zip files.
[bug present since the beginning]
gzip diagnostics now quote file names containing unusual characters.
[bug present since the beginning]
A use of uninitialized memory on some malformed inputs has been fixed.
[bug present since the beginning]
A buffer overflow has been fixed when decompressing an .lzh file
after decompressing a .Z file.
[bug present since the beginning]
When decompressing an .lzh file, the output is no longer corrupted
when an internal bit buffer is not properly cleared.
[bug present since the beginning]
When decompressing an .lzh file after another .lzh file, the output is
no longer corrupted by the previous file's decoding table.
[bug present since the beginning]
WG 14
| N3968 | 2026/09/20 | Myers, Implementation-documented behavior |
| N3967 | 2026/09/20 | Myers, C2Y issue log, r1 |
| N3966 | 2026/09/20 | Myers, C23 issue log, r6 |
C23のは数が多いのでスルーして、 C2Yから
| Issue | Summary | Status |
|---|---|---|
| 1094 | Missing [[unsequenced]] in <stdbit.h> | Open |
| 1096 | fopen mode string issues | Open |
| 1097 | Incomplete internal linkage tentative definitions completed in inner scope | Open |
| 1098 | Source files not ending with newline | Open |
| 1099 | UCNs from token concatenation | Open |
| 1100 | <math.h> overflow in non-default rounding modes | Open |
| 1101 | Static assertions in expressions in for loops | Open |
| 1109 | N3322 and N3466 overlooked a few cases | Open |
| 1110 | strftime %c and additional struct tm members | Open |
コンビニ払い
コンビニで紙での支払い(収納代行)をした際、今までは用紙の右側の控えを切り離してもらい受け取っていたと思うけど、2027年4月1日0時からはやり方が変わります。3ヵ所(車の税金は4ヵ所)に検収印を押してもらったら、そのまま丸ごと受け取ることになります。もし店員が間違えて切り離して右側だけしか
— ヤマモス🥬 (@yamamoz) September 25, 2026
へー
新刊近刊
11/30(月)発売予定の新刊『入門 モダンC++ ―最新の言語標準への招待』の情報をAmazonおよび楽天ブックスで公開開始しました!
— O'Reilly Japan (@oreilly_japan) September 26, 2026
最新の規格であるC++23に準拠した本書で、モダンなC++を基礎から応用まで無駄なくコンパクトに学べます🤩https://t.co/0VH7yfNt60 pic.twitter.com/Kz1OMzdf8a
「最新」が気になるところだけど、 Amazonにあった解説によれば
本書では、最新の規格であるC++23に完全に準拠し、次の規格であるC++26にも触れながら、 他書ではあまり解説されていないC++の新機能について詳しく説明します。
ふむ
10月上旬新刊
— 書泉_MATH (@rikoushonotana) September 27, 2026
『猫と遊ぶ楽しい数学 放課後に試す頭のトレーニング』ダニエル Ⅿ ルック 監訳:宮崎 興二 酒井 啓/パウロ パトラシュク/訳 2200円(丸善出版)… pic.twitter.com/3QfTwmGF6x
こーゆーの好きだ😄
一つ前の記事 シルバーウイーク 一つ後の記事 October