|
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/stella4034/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 を入手。美品。
まだ電源を入れていない。
( つっこみ )
|
最近の日記 2025年11月22日 ・crash dump 2025年10月25日 ・recover from disk error 2025年10月23日 ・dd does not duplicate Windows 11 boot disk ? 2025年10月13日 ・missing package 2025年10月04日 ・pkgin search pkgname segfaults | ||