gecko-dev/ipc
Jed Davis 850869a8df Bug 1595453 - Allow serializing zero-length ByteBufs. r=nika
If someone tried to serialize a zero-size ByteBuf, it could add a
zero-length segment to the `BufferList` and cause an assertion failure
later when trying to send the message.  This patch makes it a no-op (and
frees the supplied buffer, because the BufferList becomes its owner).

We previously asserted against adding zero-*capacity* segments (likely
also zero size, but possibly not) with WriteBytesZeroCopy, but only on
debug builds, and it was likely happening on release builds despite
that.  That case is now allowed.

Also, error handling for `BufferList::WriteBytesZeroCopy` has been
improved.  (This doesn't affect `Pickle` because it's using infallible
allocation, and no other instances of `BufferList` seem to use
`WriteBytesZeroCopy` at this time.)

Differential Revision: https://phabricator.services.mozilla.com/D192531
2023-11-02 18:05:31 +00:00
..
app Bug 1850647 - add an optional argument to py_action to record the target file name for most actions, r=glandium. 2023-10-12 08:41:34 +00:00
chromium Bug 1595453 - Allow serializing zero-length ByteBufs. r=nika 2023-11-02 18:05:31 +00:00
contentproc
docs Bug 1860157 - Fix typos found by codespell 2.2.6 r=webdriver-reviewers,zeid,search-reviewers,perftest-reviewers,devtools-reviewers,releng-reviewers,gbrown,sparky,jteow 2023-10-19 20:52:10 +00:00
glue Bug 1861519 - [1/1] increase arbitrary timeout in test r=ipc-reviewers,nika 2023-10-30 22:20:16 +00:00
gtest Bug 1850865: Improve MOZ_IPC_MESSAGE_LOG. r=ipc-reviewers,nika 2023-09-05 18:09:30 +00:00
ipdl Bug 1553691 - Implement CrossProcessSemaphore on macOS using Mach semaphores. r=nika 2023-09-19 21:16:46 +00:00
mscom Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu 2023-10-10 08:51:12 +00:00
testshell Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp 2023-05-23 12:11:39 +00:00
moz.build Backed out 2 changesets (bug 1834172, bug 1827747) for breaking local artifacts . a=backout 2023-05-22 12:42:00 +03:00
pull-chromium.py Bug 1786490 - reformat the tree using black 23.3.0 r=sylvestre,webdriver-reviewers,taskgraph-reviewers,whimboo,jmaher,ahal,perftest-reviewers,geckoview-reviewers,afinder,m_kato 2023-09-06 16:14:30 +00:00