hns - 日記自動生成システム - Version 2.19.9

先月 2005年02月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2005年02月11日(金) 旧暦 [n年日記] [更新:"2005/02/12 08:27:27"]

#1 [Emacs] Emacs-21.3.50 -> Emacs-22.0.50

小関さんの日記 から。 21.4 が出たことより、この方が大きい知らせ(News)の気がするのは ? ...

#2 [NetBSD][pkgsrc][bulk-build] 90% を越える

2005/02/11 17:42:59 4787/5294=90.4% emulators/stella
4034/4787/5924
全 package の大きさ 3,255,259 k = 3.2G

#3 [apache][pkgsrc] 以前に apache を少し直していた

以前に、次のような変なへッダを送らないように、apache を変更していたのを すっかり忘れて、
 Content-Encoding: (with
最近は pkgsrc から入れて安心していた。面倒だなぁ。 pkgsrc に少しだけ変更を加えたい時の方法には、どういうものがあるかなぁ。

「http.conf から mod_mime_magic を外す」 という方がいいかな。

It seems to me the passed string (char *str) will not be given the enough memory allocation on linked list processing:

httpd-2.0.52/modules/metadata/mod_mime_magic.c:

542 static int magic_rsl_add(request_rec *r, char *str)
543 {
544     magic_req_rec *req_dat = (magic_req_rec *)
545                     ap_get_module_config(r->request_config, &mime_magic_module);
546     magic_rsl *rsl;
547
548     /* make sure we have a list to put it in */
549     if (!req_dat) {
550         ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_EINVAL, r,
551                     MODNAME ": request config should not be NULL");
552         if (!(req_dat = magic_set_config(r))) {
553             /* failure */
554             return -1;
555         }
556     }
557
558     /* allocate the list entry */
559     rsl = (magic_rsl *) apr_palloc(r->pool, sizeof(magic_rsl));
560
561     /* fill it */
562     rsl->str = str;
563     rsl->next = (magic_rsl *) NULL;
The pointer has allocation on line 559, but string str has no space to put it in ? Say, the memory allocation should be done before calling magic_rsl_add ?

No. the othe calling sequence, like

       magic_rsl_puts(r, "text/plain");
may be working fine....

the space in string may be the problem.:

If I put the (-) in place of space, it will output following header.
Content-Encoding: (with-escape-sequences)

bugzilla:


#4 [機械] PM7600 を入手。美品。

まだ電源を入れていない。



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)