Ticket #19254

MIME Q-encode の softwrap の問題

Open Date: 2009-10-20 22:49 Last Update: 2009-10-21 20:29

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

改行が CRLF 環境で Mime Q-encode のデコードで Softwrap を使ってい た場合、結果が壊れる。

スキップする文字が偶数個になると駄目です。

---------- >8 ---------- >8 ---------- >8 ---------- >8 
--- nkf_orig.c	2009-10-20 22:42:58.669604278 +0900
+++ nkf.c	2009-10-20 22:44:08.179604370 +0900
@@ -4433,7 +4433,7 @@
 	}
 	if (c1=='='&&c2<SP) { /* this is soft wrap */
 	    while((c1 =  (*i_mgetc)(f)) <=SP) {
-		if ((c1 = (*i_mgetc)(f)) == EOF) return (EOF);
+		if (c1 == EOF) return (EOF);
 	    }
 	    mime_decode_mode = 'Q'; /* still in MIME */
 	    goto restart_mime_q;
---------- >8 ---------- >8 ---------- >8 ---------- >8 

Ticket History (2/2 Histories)

2009-10-20 22:49 Updated by: efialtes
  • New Ticket "MIME Q-encode の softwrap の問題" created
2009-10-21 20:29 Updated by: naruse
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2009-10-21 20:29
Comment

http://git.sourceforge.jp/view?p=nkf/nkf.git;a=commit;h=a5eec6c0df187c0e46a7dd4117ec2d01a1ace5c1 にて反映しました、ありがとうございました。

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login