зеркало из https://github.com/github/ruby.git
* regparse.c (type_cclass_hash): (Thanks Nobu) fixed overrun. ([ruby-dev:25676]).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7049aeb893
Коммит
ad24e23548
|
@ -1,3 +1,8 @@
|
|||
Sun Feb 13 11:38:40 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
|
||||
|
||||
* regparse.c (type_cclass_hash): (Thanks Nobu) fixed
|
||||
overrun. ([ruby-dev:25676]).
|
||||
|
||||
Sun Feb 13 10:53:08 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
|
||||
|
||||
* oniggnu.h, oniguruma.h, regcomp.c, st.c: imported
|
||||
|
|
|
@ -4533,12 +4533,12 @@ static int type_cclass_hash(type_cclass_key* key)
|
|||
val = 0;
|
||||
|
||||
p = (unsigned char* )&(key->enc);
|
||||
for (i = 0; i < sizeof(OnigEncodingType); i++) {
|
||||
for (i = 0; i < sizeof(key->enc); i++) {
|
||||
val = val * 997 + (int )*p++;
|
||||
}
|
||||
|
||||
p = (unsigned char* )(&key->type);
|
||||
for (i = 0; i < sizeof(int); i++) {
|
||||
for (i = 0; i < sizeof(key->type); i++) {
|
||||
val = val * 997 + (int )*p++;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче