You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Donat Zenichev
775eaeb420
MT#59962 XmlRpcValue: initialize `tm`
Fixes:
*** CID 549010: Uninitialized variables (UNINIT)
/apps/xmlrpc2di/xmlrpc++/src/XmlRpcValue.cpp: 395 in
XmlRpc::XmlRpcValue::timeFromXml(const std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>> &, unsigned long *)()
389 if (sscanf(stime.c_str(),"%4d%2d%2dT%2d:%2d:%2d",&t.tm_year,&t.tm_mon,
&t.tm_mday,&t.tm_hour,&t.tm_min,&t.tm_sec) != 6)
390 return false;
391
392 t.tm_year -= 1900;
393 t.tm_isdst = -1;
394 _type = TypeDateTime;
>>> CID 549010: Uninitialized variables (UNINIT)
>>> Using uninitialized value "t". Field "t.tm_wday" is uninitialized.
395 _value.asTime = new struct tm(t);
396 *offset += stime.length();
397 return true;
398 }
399
400 std::string XmlRpcValue::timeToXml() const
Change-Id: Ifbefcf8e79d7113e1fdc8c92dfc5c39d480a882d
|
1 year ago |
| .. |
|
ann_b2b
|
…
|
|
|
announce_transfer
|
…
|
|
|
announcement
|
…
|
|
|
annrecorder
|
…
|
|
|
callback
|
…
|
|
|
click2dial
|
…
|
|
|
conf_auth
|
…
|
|
|
conference
|
MT#59962 AmUtils: use overloading for str2int
|
1 year ago |
|
confpin
|
…
|
|
|
db_reg_agent
|
MT#62181 remove event queue during shut down
|
1 year ago |
|
diameter_client
|
MT#62181 global: fix AmThread/AmEventQueue order
|
1 year ago |
|
dsm
|
MT#62181 use std::move
|
1 year ago |
|
early_announce
|
MT#59962 AmUtils: use overloading for str2int
|
1 year ago |
|
early_dbprompt
|
…
|
|
|
examples
|
…
|
|
|
gateway
|
…
|
|
|
ivr
|
…
|
|
|
jsonrpc
|
MT#62181 global: fix AmThread/AmEventQueue order
|
1 year ago |
|
mailbox
|
…
|
|
|
mobile_push
|
…
|
|
|
monitoring
|
MT#62181 global: use AmThread stop_requested
|
1 year ago |
|
mp3
|
…
|
|
|
msg_storage
|
…
|
|
|
mwi
|
…
|
|
|
pin_collect
|
…
|
|
|
precoded_announce
|
…
|
|
|
py_sems
|
…
|
|
|
reg_agent
|
…
|
|
|
registrar_client
|
MT#62181 global: use AmThread stop_requested
|
1 year ago |
|
rtmp
|
MT#62181 global: use AmThread stop_requested
|
1 year ago |
|
sbc
|
MT#62181 use std::move
|
1 year ago |
|
sw_vsc
|
MT#62181 use std::move
|
1 year ago |
|
twit
|
…
|
|
|
voicebox
|
MT#59962 AmUtils: use overloading for str2int
|
1 year ago |
|
voicemail
|
…
|
|
|
webconference
|
MT#59962 AmUtils: use overloading for str2int
|
1 year ago |
|
xmlrpc2di
|
MT#59962 XmlRpcValue: initialize `tm`
|
1 year ago |
|
CMakeLists.txt
|
…
|
|
|
Makefile
|
…
|
|