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
1 year ago
..
ann_b2b
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
announce_transfer
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
announcement
MT#62181 onInvite et al: const updates
1 year ago
annrecorder
MT#62181 onInvite et al: const updates
1 year ago
callback
MT#62181 onInvite et al: const updates
1 year ago
click2dial
MT#62181 onInvite et al: const updates
1 year ago
conf_auth
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
conference
MT#59962 AmUtils: use overloading for str2int
1 year ago
confpin
MT#55831 confpin: simple pin conference app
4 years ago
db_reg_agent
MT#62181 fix initialisers
1 year ago
diameter_client
MT#62181 AmArg: take ownership of ValueArray
1 year ago
dsm
MT#59962 ModSbc: use move instead of copy for mf
1 year ago
early_announce
MT#59962 AmUtils: use overloading for str2int
1 year ago
early_dbprompt
MT#59962 early_dbprompt: add Makefile
2 years ago
examples
MT#59962 xmlrpc2di: deprecate int support
1 year ago
gateway
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
ivr
MT#57437 Upstream: apps/ivr fix for Python3.10 and higher
3 years ago
jsonrpc
MT#62181 global: fix AmThread/AmEventQueue order
1 year ago
mailbox
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
mobile_push
MT#59962 mobile_push: add Makefile
2 years ago
monitoring
MT#62181 global: use AmThread stop_requested
1 year ago
mp3
added OpenSSL linking exception to license
16 years ago
msg_storage
MT#55831 Revamp the build system
4 years ago
mwi
MT#57437 Upstream: Fixed NOTIFY to URI
3 years ago
pin_collect
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
precoded_announce
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
py_sems
MT#56184 build: Fix parallel building
3 years ago
reg_agent
MT#59962 Coverity Scan: Uninitialized pointer field (reg_agent)
1 year ago
registrar_client
MT#62181 global: use AmThread stop_requested
1 year ago
rtmp
MT#62181 global: use AmThread stop_requested
1 year ago
sbc
MT#59962 SBC: `reloadProfiles()` use move for profiles
1 year ago
sw_vsc
MT#62181 onInvite et al: const updates
1 year ago
twit
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
voicebox
MT#59962 AmUtils: use overloading for str2int
1 year ago
voicemail
MT#62181 rework AmCondition
1 year ago
webconference
MT#62181 onInvite et al: const updates
1 year ago
xmlrpc2di
MT#59962 XmlRpcSocket: refactor `nbWrite()`, make it safer
1 year ago
CMakeLists.txt
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
Makefile
MT#59962 apps: exclude sw_vsc
2 years ago