Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/twinkle-1.10.1+dfsg/src/abstract_dialog.cpp
Examining data/twinkle-1.10.1+dfsg/src/abstract_dialog.h
Examining data/twinkle-1.10.1+dfsg/src/address_book.cpp
Examining data/twinkle-1.10.1+dfsg/src/address_book.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_codecs.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_codecs.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_decoder.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_decoder.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_device.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_encoder.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_encoder.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_rx.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_rx.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_session.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_session.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_tx.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_tx.h
Examining data/twinkle-1.10.1+dfsg/src/audio/dtmf_player.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/dtmf_player.h
Examining data/twinkle-1.10.1+dfsg/src/audio/freq_gen.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/freq_gen.h
Examining data/twinkle-1.10.1+dfsg/src/audio/g711.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/g711.h
Examining data/twinkle-1.10.1+dfsg/src/audio/g721.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/g723_16.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/g723_24.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/g723_40.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/g72x.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/g72x.h
Examining data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/media_buffer.h
Examining data/twinkle-1.10.1+dfsg/src/audio/rtp_telephone_event.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/rtp_telephone_event.h
Examining data/twinkle-1.10.1+dfsg/src/audio/tone_gen.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/tone_gen.h
Examining data/twinkle-1.10.1+dfsg/src/audio/twinkle_rtp_session.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/twinkle_rtp_session.h
Examining data/twinkle-1.10.1+dfsg/src/audio/twinkle_zrtp_ui.cpp
Examining data/twinkle-1.10.1+dfsg/src/audio/twinkle_zrtp_ui.h
Examining data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp
Examining data/twinkle-1.10.1+dfsg/src/audits/memman.cpp
Examining data/twinkle-1.10.1+dfsg/src/audits/memman.h
Examining data/twinkle-1.10.1+dfsg/src/auth.cpp
Examining data/twinkle-1.10.1+dfsg/src/auth.h
Examining data/twinkle-1.10.1+dfsg/src/call_history.cpp
Examining data/twinkle-1.10.1+dfsg/src/call_history.h
Examining data/twinkle-1.10.1+dfsg/src/call_script.cpp
Examining data/twinkle-1.10.1+dfsg/src/call_script.h
Examining data/twinkle-1.10.1+dfsg/src/client_request.cpp
Examining data/twinkle-1.10.1+dfsg/src/client_request.h
Examining data/twinkle-1.10.1+dfsg/src/cmd_socket.cpp
Examining data/twinkle-1.10.1+dfsg/src/cmd_socket.h
Examining data/twinkle-1.10.1+dfsg/src/dialog.cpp
Examining data/twinkle-1.10.1+dfsg/src/dialog.h
Examining data/twinkle-1.10.1+dfsg/src/diamondcard.cpp
Examining data/twinkle-1.10.1+dfsg/src/diamondcard.h
Examining data/twinkle-1.10.1+dfsg/src/epa.cpp
Examining data/twinkle-1.10.1+dfsg/src/epa.h
Examining data/twinkle-1.10.1+dfsg/src/events.cpp
Examining data/twinkle-1.10.1+dfsg/src/events.h
Examining data/twinkle-1.10.1+dfsg/src/exceptions.h
Examining data/twinkle-1.10.1+dfsg/src/gui/address_finder.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/address_finder.h
Examining data/twinkle-1.10.1+dfsg/src/gui/addresscardform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/addresscardform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/addresstablemodel.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/addresstablemodel.h
Examining data/twinkle-1.10.1+dfsg/src/gui/authenticationform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/authenticationform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/buddyform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/buddyform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/buddylistview.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/buddylistview.h
Examining data/twinkle-1.10.1+dfsg/src/gui/command_args.h
Examining data/twinkle-1.10.1+dfsg/src/gui/core_strings.h
Examining data/twinkle-1.10.1+dfsg/src/gui/deregisterform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/deregisterform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/diamondcardprofileform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/dtmfform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/dtmfform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/getaddressform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/getaddressform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/getprofilenameform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/gui.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/gui.h
Examining data/twinkle-1.10.1+dfsg/src/gui/historyform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/historyform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/incoming_call_popup.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/incoming_call_popup.h
Examining data/twinkle-1.10.1+dfsg/src/gui/inviteform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/logviewform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/logviewform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/main.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/messageform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/messageform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/messageformview.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/messageformview.h
Examining data/twinkle-1.10.1+dfsg/src/gui/mphoneform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/numberconversionform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/osd.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/osd.h
Examining data/twinkle-1.10.1+dfsg/src/gui/qt_translator.h
Examining data/twinkle-1.10.1+dfsg/src/gui/redirectform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/redirectform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/selectnicform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/selectnicform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/selectprofileform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/selectprofileform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/selectuserform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/selectuserform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/sendfileform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/sendfileform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/srvredirectform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/srvredirectform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/syssettingsform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/termcapform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/termcapform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/textbrowsernoautolink.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/textbrowsernoautolink.h
Examining data/twinkle-1.10.1+dfsg/src/gui/transferform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/transferform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/twinkleapplication.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/twinkleapplication.h
Examining data/twinkle-1.10.1+dfsg/src/gui/userprofileform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/wizardform.h
Examining data/twinkle-1.10.1+dfsg/src/gui/yesnodialog.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/yesnodialog.h
Examining data/twinkle-1.10.1+dfsg/src/gui/diamondcardprofileform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/getprofilenameform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/inviteform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/mphoneform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/numberconversionform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/syssettingsform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/userprofileform.cpp
Examining data/twinkle-1.10.1+dfsg/src/gui/wizardform.cpp
Examining data/twinkle-1.10.1+dfsg/src/id_object.cpp
Examining data/twinkle-1.10.1+dfsg/src/id_object.h
Examining data/twinkle-1.10.1+dfsg/src/im/im_iscomposing_body.cpp
Examining data/twinkle-1.10.1+dfsg/src/im/im_iscomposing_body.h
Examining data/twinkle-1.10.1+dfsg/src/im/msg_session.cpp
Examining data/twinkle-1.10.1+dfsg/src/im/msg_session.h
Examining data/twinkle-1.10.1+dfsg/src/line.cpp
Examining data/twinkle-1.10.1+dfsg/src/line.h
Examining data/twinkle-1.10.1+dfsg/src/listener.cpp
Examining data/twinkle-1.10.1+dfsg/src/listener.h
Examining data/twinkle-1.10.1+dfsg/src/log.cpp
Examining data/twinkle-1.10.1+dfsg/src/log.h
Examining data/twinkle-1.10.1+dfsg/src/main.cpp
Examining data/twinkle-1.10.1+dfsg/src/mwi/mwi.cpp
Examining data/twinkle-1.10.1+dfsg/src/mwi/mwi.h
Examining data/twinkle-1.10.1+dfsg/src/mwi/mwi_dialog.cpp
Examining data/twinkle-1.10.1+dfsg/src/mwi/mwi_dialog.h
Examining data/twinkle-1.10.1+dfsg/src/mwi/mwi_subscription.cpp
Examining data/twinkle-1.10.1+dfsg/src/mwi/mwi_subscription.h
Examining data/twinkle-1.10.1+dfsg/src/mwi/simple_msg_sum_body.cpp
Examining data/twinkle-1.10.1+dfsg/src/mwi/simple_msg_sum_body.h
Examining data/twinkle-1.10.1+dfsg/src/parser/challenge.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/challenge.h
Examining data/twinkle-1.10.1+dfsg/src/parser/coding.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/coding.h
Examining data/twinkle-1.10.1+dfsg/src/parser/credentials.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/credentials.h
Examining data/twinkle-1.10.1+dfsg/src/parser/definitions.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/definitions.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_accept.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_accept.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_accept_encoding.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_accept_encoding.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_accept_language.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_accept_language.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_alert_info.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_alert_info.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_allow.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_allow.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_allow_events.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_allow_events.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_auth_info.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_auth_info.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_authorization.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_authorization.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_call_id.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_call_id.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_call_info.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_call_info.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_contact.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_contact.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_disp.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_disp.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_encoding.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_encoding.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_language.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_language.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_length.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_length.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_type.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_content_type.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_cseq.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_cseq.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_date.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_date.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_error_info.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_error_info.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_event.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_event.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_expires.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_expires.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_from.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_from.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_in_reply_to.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_in_reply_to.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_max_forwards.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_max_forwards.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_mime_version.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_mime_version.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_min_expires.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_min_expires.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_organization.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_organization.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_p_asserted_identity.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_p_asserted_identity.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_p_preferred_identity.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_p_preferred_identity.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_priority.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_priority.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_privacy.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_privacy.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_proxy_authenticate.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_proxy_authenticate.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_proxy_authorization.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_proxy_authorization.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_proxy_require.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_proxy_require.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_rack.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_rack.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_record_route.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_record_route.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_refer_sub.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_refer_sub.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_refer_to.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_refer_to.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_referred_by.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_referred_by.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_replaces.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_replaces.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_reply_to.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_reply_to.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_request_disposition.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_request_disposition.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_require.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_require.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_retry_after.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_retry_after.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_route.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_route.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_rseq.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_rseq.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_server.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_server.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_service_route.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_service_route.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_sip_etag.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_sip_etag.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_sip_if_match.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_sip_if_match.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_subject.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_subject.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_subscription_state.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_subscription_state.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_supported.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_supported.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_timestamp.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_timestamp.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_to.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_to.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_unsupported.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_unsupported.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_user_agent.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_user_agent.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_via.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_via.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_warning.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_www_authenticate.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_www_authenticate.h
Examining data/twinkle-1.10.1+dfsg/src/parser/header.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/header.h
Examining data/twinkle-1.10.1+dfsg/src/parser/identity.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/identity.h
Examining data/twinkle-1.10.1+dfsg/src/parser/media_type.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/media_type.h
Examining data/twinkle-1.10.1+dfsg/src/parser/milenage.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/milenage.h
Examining data/twinkle-1.10.1+dfsg/src/parser/parameter.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/parameter.h
Examining data/twinkle-1.10.1+dfsg/src/parser/parse_ctrl.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/parse_ctrl.h
Examining data/twinkle-1.10.1+dfsg/src/parser/request.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/request.h
Examining data/twinkle-1.10.1+dfsg/src/parser/response.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/response.h
Examining data/twinkle-1.10.1+dfsg/src/parser/rijndael.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/rijndael.h
Examining data/twinkle-1.10.1+dfsg/src/parser/route.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/route.h
Examining data/twinkle-1.10.1+dfsg/src/parser/sip_body.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/sip_body.h
Examining data/twinkle-1.10.1+dfsg/src/parser/sip_message.cpp
Examining data/twinkle-1.10.1+dfsg/src/parser/sip_message.h
Examining data/twinkle-1.10.1+dfsg/src/parser/hdr_warning.h
Examining data/twinkle-1.10.1+dfsg/src/patterns/observer.cpp
Examining data/twinkle-1.10.1+dfsg/src/patterns/observer.h
Examining data/twinkle-1.10.1+dfsg/src/phone.cpp
Examining data/twinkle-1.10.1+dfsg/src/phone.h
Examining data/twinkle-1.10.1+dfsg/src/phone_user.cpp
Examining data/twinkle-1.10.1+dfsg/src/phone_user.h
Examining data/twinkle-1.10.1+dfsg/src/presence/buddy.cpp
Examining data/twinkle-1.10.1+dfsg/src/presence/buddy.h
Examining data/twinkle-1.10.1+dfsg/src/presence/pidf_body.cpp
Examining data/twinkle-1.10.1+dfsg/src/presence/pidf_body.h
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_dialog.cpp
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_dialog.h
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_epa.cpp
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_epa.h
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_state.cpp
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_state.h
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_subscription.cpp
Examining data/twinkle-1.10.1+dfsg/src/presence/presence_subscription.h
Examining data/twinkle-1.10.1+dfsg/src/prohibit_thread.cpp
Examining data/twinkle-1.10.1+dfsg/src/prohibit_thread.h
Examining data/twinkle-1.10.1+dfsg/src/protocol.h
Examining data/twinkle-1.10.1+dfsg/src/redirect.cpp
Examining data/twinkle-1.10.1+dfsg/src/redirect.h
Examining data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp
Examining data/twinkle-1.10.1+dfsg/src/sdp/sdp.h
Examining data/twinkle-1.10.1+dfsg/src/sdp/sdp_parse_ctrl.cpp
Examining data/twinkle-1.10.1+dfsg/src/sdp/sdp_parse_ctrl.h
Examining data/twinkle-1.10.1+dfsg/src/sdp/sdp_parser.h
Examining data/twinkle-1.10.1+dfsg/src/sender.cpp
Examining data/twinkle-1.10.1+dfsg/src/sender.h
Examining data/twinkle-1.10.1+dfsg/src/sequence_number.h
Examining data/twinkle-1.10.1+dfsg/src/service.cpp
Examining data/twinkle-1.10.1+dfsg/src/service.h
Examining data/twinkle-1.10.1+dfsg/src/session.cpp
Examining data/twinkle-1.10.1+dfsg/src/session.h
Examining data/twinkle-1.10.1+dfsg/src/sockets/connection.cpp
Examining data/twinkle-1.10.1+dfsg/src/sockets/connection.h
Examining data/twinkle-1.10.1+dfsg/src/sockets/connection_table.cpp
Examining data/twinkle-1.10.1+dfsg/src/sockets/connection_table.h
Examining data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp
Examining data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.h
Examining data/twinkle-1.10.1+dfsg/src/sockets/interfaces.cpp
Examining data/twinkle-1.10.1+dfsg/src/sockets/interfaces.h
Examining data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp
Examining data/twinkle-1.10.1+dfsg/src/sockets/socket.h
Examining data/twinkle-1.10.1+dfsg/src/sockets/url.cpp
Examining data/twinkle-1.10.1+dfsg/src/sockets/url.h
Examining data/twinkle-1.10.1+dfsg/src/stun/stun.cxx
Examining data/twinkle-1.10.1+dfsg/src/stun/stun.h
Examining data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp
Examining data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.h
Examining data/twinkle-1.10.1+dfsg/src/stun/udp.cxx
Examining data/twinkle-1.10.1+dfsg/src/stun/udp.h
Examining data/twinkle-1.10.1+dfsg/src/sub_refer.cpp
Examining data/twinkle-1.10.1+dfsg/src/sub_refer.h
Examining data/twinkle-1.10.1+dfsg/src/subscription.cpp
Examining data/twinkle-1.10.1+dfsg/src/subscription.h
Examining data/twinkle-1.10.1+dfsg/src/subscription_dialog.cpp
Examining data/twinkle-1.10.1+dfsg/src/subscription_dialog.h
Examining data/twinkle-1.10.1+dfsg/src/sys_settings.cpp
Examining data/twinkle-1.10.1+dfsg/src/sys_settings.h
Examining data/twinkle-1.10.1+dfsg/src/threads/mutex.cpp
Examining data/twinkle-1.10.1+dfsg/src/threads/mutex.h
Examining data/twinkle-1.10.1+dfsg/src/threads/sema.cpp
Examining data/twinkle-1.10.1+dfsg/src/threads/sema.h
Examining data/twinkle-1.10.1+dfsg/src/threads/thread.cpp
Examining data/twinkle-1.10.1+dfsg/src/threads/thread.h
Examining data/twinkle-1.10.1+dfsg/src/timekeeper.cpp
Examining data/twinkle-1.10.1+dfsg/src/timekeeper.h
Examining data/twinkle-1.10.1+dfsg/src/transaction.cpp
Examining data/twinkle-1.10.1+dfsg/src/transaction.h
Examining data/twinkle-1.10.1+dfsg/src/transaction_layer.cpp
Examining data/twinkle-1.10.1+dfsg/src/transaction_layer.h
Examining data/twinkle-1.10.1+dfsg/src/transaction_mgr.cpp
Examining data/twinkle-1.10.1+dfsg/src/transaction_mgr.h
Examining data/twinkle-1.10.1+dfsg/src/translator.h
Examining data/twinkle-1.10.1+dfsg/src/user.cpp
Examining data/twinkle-1.10.1+dfsg/src/user.h
Examining data/twinkle-1.10.1+dfsg/src/userintf.cpp
Examining data/twinkle-1.10.1+dfsg/src/userintf.h
Examining data/twinkle-1.10.1+dfsg/src/util.cpp
Examining data/twinkle-1.10.1+dfsg/src/util.h
Examining data/twinkle-1.10.1+dfsg/src/utils/file_utils.cpp
Examining data/twinkle-1.10.1+dfsg/src/utils/file_utils.h
Examining data/twinkle-1.10.1+dfsg/src/utils/mime_database.cpp
Examining data/twinkle-1.10.1+dfsg/src/utils/mime_database.h
Examining data/twinkle-1.10.1+dfsg/src/utils/record_file.h
Examining data/twinkle-1.10.1+dfsg/src/utils/record_file.hpp

FINAL RESULTS:

data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1884:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		if ((len_link = readlink(dev.c_str(), buf, 31)) != -1) {
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1953:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		len_link1 = readlink(dev1.device.c_str(), symlink1, 31);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1954:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		len_link2 = readlink(dev2.device.c_str(), symlink2, 31);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1996:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		int len_link = readlink(device.c_str(), symlink, 31);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:2014:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		int len_link = readlink(device.c_str(), symlink, 31);
data/twinkle-1.10.1+dfsg/src/gui/main.cpp:528:31:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		QString langName = QLocale::system().name().left(2);
data/twinkle-1.10.1+dfsg/src/gui/main.cpp:535:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		qtTranslator->load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:99:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (svcnm, service);
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:101:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (svcnm, proto);
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:387:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(sockname.sun_path, name.c_str());
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:416:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(sockname.sun_path, name.c_str());
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:783:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(buffer,hmacHex);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:981:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(response.errorCode.reason, msg);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1132:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(response.errorCode.reason, msg);
data/twinkle-1.10.1+dfsg/src/util.cpp:82:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, 32, format, i);
data/twinkle-1.10.1+dfsg/src/util.cpp:93:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, 32, format, i);
data/twinkle-1.10.1+dfsg/src/gui/main.cpp:79:30:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
t_init_rand::t_init_rand() { srand(time(NULL)); }
data/twinkle-1.10.1+dfsg/src/main.cpp:55:30:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
t_init_rand::t_init_rand() { srand(time(NULL)); }
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:681:7:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      srand(seed);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:683:7:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      srandom(seed);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:696:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   return random(); 
data/twinkle-1.10.1+dfsg/src/sys_settings.h:37:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define DIR_HOME	(getenv("HOME"))
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:36:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
t_audio_io* t_audio_io::open(const t_audio_device& dev, bool playback, bool capture, bool blocking, int channels, t_audio_sampleformat format, int sample_rate, bool short_latency)
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:54:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (aio->open(dev.device, playback, capture, blocking, channels, format, 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:68:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	t_audio_io *aio = open(dev, playback, capture, false, 1, SAMPLEFORMAT_S16, 8000, true);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:85:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool t_audio_io::open(const string& device, bool playback, bool capture, bool blocking, int channels, t_audio_sampleformat format, int sample_rate, bool short_latency)
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:104:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool t_oss_io::open(const string& device, bool playback, bool capture, bool blocking, int channels, t_audio_sampleformat format, int sample_rate, bool short_latency) 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:106:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	t_audio_io::open(device, playback, capture, blocking, channels, format, sample_rate,
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:131:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = ::open(device.c_str(), mode | O_NONBLOCK);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:144:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = ::open(device.c_str(), mode);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:386:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool t_alsa_io::open(const string& device, bool playback, bool capture, bool blocking, int channels, t_audio_sampleformat format, int sample_rate, bool short_latency) 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:388:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	t_audio_io::open(device, playback, capture, blocking, channels, format, sample_rate,
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:409:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!open(device, true, false, blocking, channels, format, 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:412:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!open(device, false, true, blocking, channels, format, 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:54:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	static t_audio_io* open(const t_audio_device& dev, bool playback, 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:62:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual bool open(const string& device, bool playback, bool capture, 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:83:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	bool open(const string& device, bool playback, bool capture, bool blocking, 
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:104:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	bool open(const string& device, bool playback, bool capture, bool blocking, 
data/twinkle-1.10.1+dfsg/src/audio/audio_session.cpp:73:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	speaker = t_audio_io::open(sys_config->get_dev_speaker(), true, true, true, 1, 
data/twinkle-1.10.1+dfsg/src/audio/audio_session.cpp:99:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	speaker = t_audio_io::open(sys_config->get_dev_speaker(), true, false, true, 1, 
data/twinkle-1.10.1+dfsg/src/audio/audio_session.cpp:113:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	mic = t_audio_io::open(sys_config->get_dev_mic(), false, true, true, 1, 
data/twinkle-1.10.1+dfsg/src/audio/audio_tx.cpp:196:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(conceal_buf[0], buf, len);
data/twinkle-1.10.1+dfsg/src/audio/audio_tx.cpp:204:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(conceal_buf[conceal_num], buf, len);
data/twinkle-1.10.1+dfsg/src/audio/audio_tx.cpp:210:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(conceal_buf[conceal_pos], buf, len);
data/twinkle-1.10.1+dfsg/src/audio/audio_tx.cpp:312:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(jitter_buf + jitter_buf_len, playbuf, len);
data/twinkle-1.10.1+dfsg/src/audio/audio_tx.cpp:350:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(jitter_buf, playbuf, len);
data/twinkle-1.10.1+dfsg/src/audio/audio_tx.h:120:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	*conceal_buf[MAX_CONCEALMENT];
data/twinkle-1.10.1+dfsg/src/audio/g711.cpp:58:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char _u2a[128] = {			/* u- to A-law conversions */
data/twinkle-1.10.1+dfsg/src/audio/g711.cpp:79:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char _a2u[128] = {			/* A- to u-law conversions */
data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp:64:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer + data_start, data, len);
data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp:67:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer + data_start, data, buf_size - data_start);
data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer, data + buf_size - data_start, data_end + 1);
data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp:93:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, buffer + pos_start, len);
data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp:97:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, buffer + pos_start, buf_size - pos_start);
data/twinkle-1.10.1+dfsg/src/audio/media_buffer.cpp:98:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data + buf_size - pos_start, buffer, len - buf_size + pos_start);
data/twinkle-1.10.1+dfsg/src/audio/tone_gen.cpp:139:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	aio = t_audio_io::open(dev_tone, true, false, true, wav_info.channels,
data/twinkle-1.10.1+dfsg/src/call_history.cpp:324:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	invite_resp_code = atoi(v[16].c_str());
data/twinkle-1.10.1+dfsg/src/call_script.cpp:172:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char **env = new char *[environ_size + 1];
data/twinkle-1.10.1+dfsg/src/call_script.cpp:209:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char **argv = new char *[arg_list.size() + 1];
data/twinkle-1.10.1+dfsg/src/cmd_socket.cpp:79:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char args[len];
data/twinkle-1.10.1+dfsg/src/gui/logviewform.cpp:53:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (logfile->open(QIODevice::ReadOnly)) {
data/twinkle-1.10.1+dfsg/src/gui/main.cpp:350:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				g_cmd_args.override_sip_port = atoi(argv[i]);
data/twinkle-1.10.1+dfsg/src/gui/main.cpp:358:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				g_cmd_args.override_rtp_port = atoi(argv[i]);
data/twinkle-1.10.1+dfsg/src/gui/wizardform.cpp:94:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (providersFile.open(QIODevice::ReadOnly)) {
data/twinkle-1.10.1+dfsg/src/im/im_iscomposing_body.cpp:97:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		refresh_ = atoi((char*)child->content);
data/twinkle-1.10.1+dfsg/src/listener.cpp:299:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		buf[sys_config->get_sip_max_udp_size() + 1];
data/twinkle-1.10.1+dfsg/src/parser/request.cpp:36:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char tbl[64] = {
data/twinkle-1.10.1+dfsg/src/parser/request.cpp:176:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(rnd, nonce64, AKA_RANDLEN);
data/twinkle-1.10.1+dfsg/src/parser/request.cpp:177:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sqnxoraka, nonce64 + AKA_RANDLEN, AKA_SQNLEN);
data/twinkle-1.10.1+dfsg/src/parser/request.cpp:178:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(k, passwd.c_str(), passwd.size());
data/twinkle-1.10.1+dfsg/src/parser/sip_body.cpp:253:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			duration = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp:557:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		unsigned short p = atoi(a->value.c_str());
data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp:619:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(l.front().c_str()) == codec) {
data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp:639:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int sample_rate = atoi(trim(rtpmap_elems[1]).c_str());
data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp:715:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(l.front().c_str()) == codec) {
data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp:733:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		value = atoi(it->value.c_str());
data/twinkle-1.10.1+dfsg/src/sdp/sdp.cpp:747:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(a->value.c_str());
data/twinkle-1.10.1+dfsg/src/sender.cpp:340:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/sender.cpp:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m[2] = { '\r', '\n' };
data/twinkle-1.10.1+dfsg/src/session.cpp:152:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	s->src_sdp_version = int2str(atoi(src_sdp_version.c_str()) + 1);
data/twinkle-1.10.1+dfsg/src/session.cpp:218:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	s->src_sdp_version = int2str(atoi(src_sdp_version.c_str()) + 1);
data/twinkle-1.10.1+dfsg/src/sockets/connection.cpp:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[READ_BLOCK_SIZE];
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:33:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf [PACKETSZ];
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:36:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char name [MAXDNAME];
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:90:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *here, *srv[MAXNUM_SRV];
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:100:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat (svcnm, "._");
data/twinkle-1.10.1+dfsg/src/sockets/interfaces.cpp:60:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&intf->address, &sin->sin_addr,
data/twinkle-1.10.1+dfsg/src/sockets/interfaces.cpp:63:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&intf->netmask, &sin->sin_addr,
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:200:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:259:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/twinkle-1.10.1+dfsg/src/sockets/url.cpp:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[256];
data/twinkle-1.10.1+dfsg/src/sockets/url.cpp:254:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			unsigned long p = atol(hostport.substr(i+2).c_str());
data/twinkle-1.10.1+dfsg/src/sockets/url.cpp:264:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			unsigned long p = atol(hostport.substr(i+1).c_str());
data/twinkle-1.10.1+dfsg/src/sockets/url.cpp:301:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			unsigned long p = atol(hostport.substr(i+2).c_str());
data/twinkle-1.10.1+dfsg/src/sockets/url.cpp:311:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			unsigned long p = atol(hostport.substr(i+1).c_str());
data/twinkle-1.10.1+dfsg/src/sockets/url.cpp:378:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ttl = atoi(pvalue.c_str());
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:65:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&nport, body, 2); body+=2;
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:69:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&naddr, body, 4); body+=4;
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:97:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&result.value, body, 4);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:113:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&result.pad, body, 2); body+=2;
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:119:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&result.reason, body, result.sizeReason);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:138:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(&result.attrType[i], body, 2); body+=2;
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:163:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&result.value, body, hdrLen);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:180:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&result.hash, body, hdrLen);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:197:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(&msg.msgHdr, buf, sizeof(StunMsgHdr));
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:445:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(buf, reinterpret_cast<void*>(&ndata), sizeof(UInt16));
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:453:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(buf, reinterpret_cast<void*>(&ndata), sizeof(UInt32));
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:461:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(buf, data, length);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:766:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[1024];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:767:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(buffer,
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:776:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char hmac[20];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:779:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char hmacHex[41];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:790:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(username->value,buffer,l);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:799:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char hmac[20];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:865:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char host[512];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1021:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        	char buf[3];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1235:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     unsigned char hmac[20];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1335:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( resp->username.value, req.username.value, req.username.sizeValue );
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1347:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( resp->serverName.value, serverName, sizeof(serverName));
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1487:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char msg[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1566:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char msg[MAX_RTP_MSG_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1709:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1774:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[ len ];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1910:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1976:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char msg[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:2161:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char msg[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:2361:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char msg[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:2423:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char msg[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun.h:28:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef struct { unsigned char octet[16]; }  UInt128;
data/twinkle-1.10.1+dfsg/src/stun/stun.h:100:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char reason[STUN_MAX_STRING];
data/twinkle-1.10.1+dfsg/src/stun/stun.h:112:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char value[STUN_MAX_STRING];      
data/twinkle-1.10.1+dfsg/src/stun/stun.h:118:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char hash[20];
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:64:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STUN_MAX_MESSAGE_SIZE + 1];
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char req_msg[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:208:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char s[STUN_MAX_STRING + 1];
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:350:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		buf[STUN_MAX_MESSAGE_SIZE + 1];
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:559:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:618:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m[STUN_MAX_MESSAGE_SIZE];
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1306:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	MEMMAN_NEW(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1307:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	int fd = mkstemp(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1307:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	int fd = mkstemp(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1311:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		MEMMAN_DELETE(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1312:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		free(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1317:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	ofstream f(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1320:46:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		error_msg = replace_first(error_msg, "%1", tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1321:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		MEMMAN_DELETE(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1322:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		free(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1329:46:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		error_msg = replace_first(error_msg, "%1", tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1331:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		MEMMAN_DELETE(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1332:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		free(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1339:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	filename = apply_glob_to_filename(tmpfile, file_extension);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1341:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if (rename(tmpfile, filename.c_str()) < 0) {
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1343:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		MEMMAN_DELETE(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1344:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		free(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1348:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	MEMMAN_DELETE(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1349:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	free(tmpfile);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1444:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_lock_file = open(lck_filename.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1563:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			alsa_play_period_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1565:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			alsa_capture_period_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1567:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			oss_fragment_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1569:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			log_max_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1585:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gui_auto_show_timeout = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1599:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ch_max_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1609:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			config_sip_port = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1611:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			config_sip_port = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1613:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rtp_port = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1615:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sip_max_udp_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1617:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sip_max_tcp_size = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1658:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ui_session_main_state = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1856:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(dev.c_str(), O_WRONLY | O_NONBLOCK);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1858:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(dev.c_str(), O_RDONLY | O_NONBLOCK);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1882:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1950:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char symlink1[32], symlink2[32];
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1995:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char symlink[32];
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:2013:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char symlink[32];
data/twinkle-1.10.1+dfsg/src/user.cpp:483:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(auth_aka_op, u.auth_aka_op, AKA_OPLEN);
data/twinkle-1.10.1+dfsg/src/user.cpp:484:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(auth_aka_amf, u.auth_aka_amf, AKA_AMFLEN);
data/twinkle-1.10.1+dfsg/src/user.cpp:659:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(aka_op, auth_aka_op, AKA_OPLEN);
data/twinkle-1.10.1+dfsg/src/user.cpp:664:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(aka_amf, auth_aka_amf, AKA_AMFLEN);
data/twinkle-1.10.1+dfsg/src/user.cpp:1502:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(auth_aka_op, aka_op, AKA_OPLEN);
data/twinkle-1.10.1+dfsg/src/user.cpp:1507:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(auth_aka_amf, aka_amf, AKA_AMFLEN);
data/twinkle-1.10.1+dfsg/src/user.cpp:2200:24:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			registration_time = atol(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2277:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ptime = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2311:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			max_redirections = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2331:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			sip_transport_udp_threshold = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2343:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			timer_noanswer = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2345:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			timer_nat_keepalive = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2347:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			timer_tcp_ping = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2368:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_nb_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2370:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_wb_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2372:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_uwb_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2387:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_abr_nb = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2389:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_abr_wb = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2395:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_quality = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2408:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_complexity = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2429:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			speex_dsp_agc_level = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2442:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ilbc_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2444:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ilbc_mode = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2446:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			g726_16_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2448:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			g726_24_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2450:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			g726_32_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2452:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			g726_40_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2458:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			dtmf_payload_type = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2460:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			dtmf_duration = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2462:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			dtmf_pause = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2464:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			dtmf_volume = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2517:28:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			mwi_subscription_time = atol(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2521:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			im_max_sessions = atoi(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2525:29:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			pres_subscription_time = atol(value.c_str());
data/twinkle-1.10.1+dfsg/src/user.cpp:2527:28:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			pres_publication_time = atol(value.c_str());
data/twinkle-1.10.1+dfsg/src/userintf.cpp:1171:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			line = atoi(i->value.c_str());
data/twinkle-1.10.1+dfsg/src/userintf.cpp:2324:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			selection = atoi(choice.c_str());
data/twinkle-1.10.1+dfsg/src/util.cpp:80:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/twinkle-1.10.1+dfsg/src/util.cpp:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/twinkle-1.10.1+dfsg/src/util.cpp:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/twinkle-1.10.1+dfsg/src/util.cpp:114:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/twinkle-1.10.1+dfsg/src/util.cpp:182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/twinkle-1.10.1+dfsg/src/util.cpp:603:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (!is_number(*i) || atoi(i->c_str()) > 255) return false;
data/twinkle-1.10.1+dfsg/src/util.cpp:746:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[81];
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:318:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(trash, skip_bytes);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:345:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int t_oss_io::read(unsigned char* buf, int len) {
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:346:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return ::read(fd, buf, len);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:779:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int t_alsa_io::read(unsigned char* buf, int len) {
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:799:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		} else if (read <= 0) {
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:801:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			msg += snd_strerror(read);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:804:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		} else if (read < len_frames) {
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:805:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			buf += rec_framesize * read;
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:806:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len_frames -= read;
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:807:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read_frames += read;
data/twinkle-1.10.1+dfsg/src/audio/audio_device.cpp:810:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return (read_frames + read) * rec_framesize;
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:50:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual int read(unsigned char* buf, int len) = 0;
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:80:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int read(unsigned char* buf, int len);
data/twinkle-1.10.1+dfsg/src/audio/audio_device.h:101:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int read(unsigned char* buf, int len);
data/twinkle-1.10.1+dfsg/src/audio/audio_rx.cpp:89:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = input_device->read(input_sample_buf, SAMPLE_BUF_SIZE);
data/twinkle-1.10.1+dfsg/src/audio/audio_rx.cpp:519:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			input_device->read(input_sample_buf, SAMPLE_BUF_SIZE);
data/twinkle-1.10.1+dfsg/src/audio/audio_rx.cpp:528:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			input_device->read(input_sample_buf, SAMPLE_BUF_SIZE);
data/twinkle-1.10.1+dfsg/src/cmd_socket.cpp:61:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (sock_client.read(&opcode, sizeof(opcode)) != sizeof(opcode)) {
data/twinkle-1.10.1+dfsg/src/cmd_socket.cpp:67:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (sock_client.read(&immediate, sizeof(immediate)) != sizeof(immediate)) {
data/twinkle-1.10.1+dfsg/src/cmd_socket.cpp:73:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (sock_client.read(&len, sizeof(len)) != sizeof(len)) {
data/twinkle-1.10.1+dfsg/src/cmd_socket.cpp:81:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (sock_client.read(args, len) != len) {
data/twinkle-1.10.1+dfsg/src/gui/selectprofileform.cpp:687:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		profile.truncate(profile.length() - strlen(USER_FILE_EXT));
data/twinkle-1.10.1+dfsg/src/listener.cpp:484:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				(*it)->read(connection_closed);
data/twinkle-1.10.1+dfsg/src/sender.cpp:424:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	conn->async_send(TCP_PING_PACKET, strlen(TCP_PING_PACKET));
data/twinkle-1.10.1+dfsg/src/sockets/connection.cpp:55:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void t_connection::read(bool &connection_closed) {
data/twinkle-1.10.1+dfsg/src/sockets/connection.h:109:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(bool &connection_closed);
data/twinkle-1.10.1+dfsg/src/sockets/connection_table.cpp:195:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(fd_pipe_modified_read_[0], &pipe_buf, 1) > 0);
data/twinkle-1.10.1+dfsg/src/sockets/connection_table.cpp:252:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read(fd_pipe_modified_read_[0], &pipe_buf, 1);
data/twinkle-1.10.1+dfsg/src/sockets/connection_table.cpp:272:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(fd_pipe_modified_write_[0], &pipe_buf, 1) > 0);
data/twinkle-1.10.1+dfsg/src/sockets/connection_table.cpp:332:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read(fd_pipe_modified_write_[0], &pipe_buf, 1);
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:98:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy (svcnm, "_");
data/twinkle-1.10.1+dfsg/src/sockets/dnssrv.cpp:149:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		here += strlen;
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:421:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int t_socket_local::read(void *buf, int count) {
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:424:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = ::read(sd, buf, count);
data/twinkle-1.10.1+dfsg/src/sockets/socket.cpp:430:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(buf, buf_size);
data/twinkle-1.10.1+dfsg/src/sockets/socket.h:212:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int read(void *buf, int count);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:720:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
   strncpy(hmac,"hmac-not-implemented",20);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:772:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   assert( strlen(buffer) < 1024 );
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:774:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   assert(strlen(buffer) + 41 < STUN_MAX_STRING);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:778:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   computeHmac(hmac, buffer, strlen(buffer), key, strlen(key) );
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:778:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   computeHmac(hmac, buffer, strlen(buffer), key, strlen(key) );
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:785:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int l = strlen(buffer);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:802:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   computeHmac(hmac, username.value, strlen(username.value), key, strlen(key));
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:802:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   computeHmac(hmac, username.value, strlen(username.value), key, strlen(key));
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:866:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(host,peerName,512);
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:905:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   assert( strlen(host) >= 1 );
data/twinkle-1.10.1+dfsg/src/stun/stun.cxx:1928:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		 usleep(10*1000);
data/twinkle-1.10.1+dfsg/src/stun/stun_transaction.cpp:209:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(s, resp_bind.errorCode.reason, STUN_MAX_STRING);
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1990:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (device.substr(0, strlen(PFX_OSS)) == PFX_OSS) {
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:1992:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		d.device = device.substr(strlen(PFX_OSS));
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:2000:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	} else if (device.substr(0, strlen(PFX_ALSA)) == PFX_ALSA) {
data/twinkle-1.10.1+dfsg/src/sys_settings.cpp:2002:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		d.device = device.substr(strlen(PFX_ALSA));
data/twinkle-1.10.1+dfsg/src/user.cpp:3157:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t domain_len = strlen(DIAMONDCARD_DOMAIN);
data/twinkle-1.10.1+dfsg/src/userintf.cpp:72:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(text);

ANALYSIS SUMMARY:

Hits = 274
Lines analyzed = 95871 in approximately 1.97 seconds (48581 lines/second)
Physical Source Lines of Code (SLOC) = 62274
Hits@level = [0]  23 [1]  54 [2] 198 [3]   6 [4]  11 [5]   5
Hits@level+ = [0+] 297 [1+] 274 [2+] 220 [3+]  22 [4+]  16 [5+]   5
Hits/KSLOC@level+ = [0+] 4.76925 [1+] 4.39991 [2+] 3.53277 [3+] 0.353277 [4+] 0.256929 [5+] 0.0802903
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.