You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Donat Zenichev
9a74726171
MT#59962 XmlRpcSocket: refactor `nbWrite()`, make it safer
...
Rework the `nbWrite()` function so, that it gets safe
in terms of:
- operating on data written/data remaining integers
- has protection guards for extra big chunks to write at once
Refactor to use size_t/ssize_t instead of primitive int,
where possible (e.g. bytesWritten).
Let the `nbWrite()` use reference instead of pointer
for the bytes written parameter.
Fixes Coverity Scan report:
4. tainted_data_return: Called function write(fd, sp, nToWrite),
and a possible return value may be less than zero.
5. cast_overflow: An assign that casts to a different type,
which might trigger an overflow.
Overflowed integer argument (INTEGER_OVERFLOW)
13. overflow_sink: nToWrite, which might have overflowed,
is passed to write(fd, sp, nToWrite).
7. overflow: The expression nToWrite is considered
to have possibly overflowed.
Change-Id: I32aa6aae5ef5715d61a91714e62b0a094bc03f21
22 hours ago
..
ann_b2b
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
announce_transfer
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
announcement
MT#62181 onInvite et al: const updates
4 weeks ago
annrecorder
MT#62181 onInvite et al: const updates
4 weeks ago
callback
MT#62181 onInvite et al: const updates
4 weeks ago
click2dial
MT#62181 onInvite et al: const updates
4 weeks ago
conf_auth
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
conference
MT#59962 AmUtils: use overloading for str2int
2 months ago
confpin
MT#55831 confpin: simple pin conference app
2 years ago
db_reg_agent
MT#62181 fix initialisers
1 month ago
diameter_client
MT#62181 AmArg: take ownership of ValueArray
4 weeks ago
dsm
MT#59962 ModSbc: use move instead of copy for mf
4 weeks ago
early_announce
MT#59962 AmUtils: use overloading for str2int
2 months ago
early_dbprompt
MT#59962 early_dbprompt: add Makefile
6 months ago
examples
MT#59962 xmlrpc2di: deprecate int support
2 weeks ago
gateway
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
ivr
MT#57437 Upstream: apps/ivr fix for Python3.10 and higher
2 years ago
jsonrpc
MT#62181 global: fix AmThread/AmEventQueue order
2 months ago
mailbox
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
mobile_push
MT#59962 mobile_push: add Makefile
6 months ago
monitoring
MT#62181 global: use AmThread stop_requested
2 months ago
mp3
added OpenSSL linking exception to license
15 years ago
msg_storage
MT#55831 Revamp the build system
2 years ago
mwi
MT#57437 Upstream: Fixed NOTIFY to URI
2 years ago
pin_collect
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
precoded_announce
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
py_sems
MT#56184 build: Fix parallel building
2 years ago
reg_agent
MT#59962 Coverity Scan: Uninitialized pointer field (reg_agent)
3 months ago
registrar_client
MT#62181 global: use AmThread stop_requested
2 months ago
rtmp
MT#62181 global: use AmThread stop_requested
2 months ago
sbc
MT#59962 SBC: `reloadProfiles()` use move for profiles
4 weeks ago
sw_vsc
MT#62181 onInvite et al: const updates
4 weeks ago
twit
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
voicebox
MT#59962 AmUtils: use overloading for str2int
2 months ago
voicemail
MT#62181 rework AmCondition
3 months ago
webconference
MT#62181 onInvite et al: const updates
4 weeks ago
xmlrpc2di
MT#59962 XmlRpcSocket: refactor `nbWrite()`, make it safer
22 hours ago
CMakeLists.txt
Imported Upstream version 1.6.0~20140516~eaa616
11 years ago
Makefile
MT#59962 apps: exclude sw_vsc
6 months ago