| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | H jj | Date: | July 28 2010 6:11am |
| Subject: | crash when Query::parse process param more then 127 | ||
| View as plain text | |||
Hi:
mysql++-3.1.0.tar.gz
$ ./configure --with-field-limit=150
code example
====
mysqlpp::Query query = dbcon->query();
query<<"call some_proc(%0:Qname, ......,%128:some)";
query.parse();
====
then crash at query.cpp:338 parsed_names_[n] = name;
because n is signed char at query.cpp:296 signed char n = atoi(num);
in example atoi(num) eq 128, but n is signed char, so n is -128
| Thread | ||
|---|---|---|
| • crash when Query::parse process param more then 127 | H jj | 28 Jul |
| • Re: crash when Query::parse process param more then 127 | Warren Young | 28 Jul |
