зеркало из https://github.com/github/ruby.git
* transcode.c (transcode_search_path): prevent infinite loop by
searching a path for self conversion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
08dcd12235
Коммит
8372c16764
|
@ -1,3 +1,8 @@
|
|||
Mon Aug 18 13:21:38 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* transcode.c (transcode_search_path): prevent infinite loop by
|
||||
searching a path for self conversion.
|
||||
|
||||
Mon Aug 18 12:45:24 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* io.c (io_enc_str): code conversion removed.
|
||||
|
|
|
@ -165,6 +165,9 @@ transcode_search_path(const char *from, const char *to,
|
|||
int found;
|
||||
int pathlen;
|
||||
|
||||
if (encoding_equal(from, to))
|
||||
return -1;
|
||||
|
||||
q = ALLOC(search_path_queue_t);
|
||||
q->enc = from;
|
||||
q->next = NULL;
|
||||
|
|
Загрузка…
Ссылка в новой задаче