Граф коммитов

139 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight 8eefcc3e76 Bug 1642631 - Make the message argument to Channel::Send() a UniquePtr. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D77876
2020-06-02 21:23:08 +00:00
Christian Holler 4b5d643db0 Bug 1641169 - Update fuzzing interface documentation. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D77007
2020-06-02 12:52:19 +00:00
Andrew McCreight 7482de916e Bug 1641090, part 5 - Make IDMap::Remove match nsTHashtable's behavior. r=nika
nsTHashtable::Remove doesn't assert if the item isn't present. Match that
behavior by removing the assert and putting it at all of the call sites.

This just turns IDMap::Remove into RemoveIfPresent, so merge them.

Differential Revision: https://phabricator.services.mozilla.com/D77166
2020-05-28 15:55:01 +00:00
Andrew McCreight 1fc2cdf98d Bug 1641090, part 4 - Make AddWithID compatible into Put. r=nika
This function is similar to the Put() method in nsTHashtable, but it lists the
key second and it asserts that the key is not already in the map. This patch
swaps the arguments and hoists the assertion out, where appropriate. Note that
there are a few places that were working around this assert, so for those places
don't include the assert.

Differential Revision: https://phabricator.services.mozilla.com/D77165
2020-05-28 15:54:59 +00:00
Christian Holler 53f361c007 Bug 1635762 - Switch libFuzzer upstream to git and add local patches. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D74040
2020-05-11 12:45:07 +00:00
Mihai Alexandru Michis 2df205e3f0 Backed out changeset 14b092e7a974 (bug 1635762) for causing failures in browser_Telemetry_timestamp_test.js
CLOSED TREE
2020-05-11 17:00:53 +03:00
Christian Holler b8917ab3a4 Bug 1635762 - Switch libFuzzer upstream to git and add local patches. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D74040
2020-05-11 12:45:07 +00:00
Christian Holler 870ae59237 Bug 1632830 - Properly shutdown ScopedXPCOM instance with libFuzzer. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D72386
2020-04-27 01:35:01 +00:00
Jesse Schwartzentruber f4128636d8 Bug 1608849 - Switch Linux Fuzzing Debug build to use clang. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59782
2020-04-07 15:53:03 +00:00
Eric Rahm 243dfaa07e Bug 1626453 - Remove nsAutoPtr usage from tools/fuzzing. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D69124

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:32 +00:00
André Bargull 14ca007916 Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/TypeTraits. r=froydnj
Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

Differential Revision: https://phabricator.services.mozilla.com/D68561

--HG--
extra : moz-landing-system : lando
2020-03-28 16:00:09 +00:00
André Bargull ebec34a898 Bug 1625138 - Part 16: Replace mozilla::IsIntegral with std::is_integral. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68371

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull 1f5d157732 Bug 1625138 - Part 15: Replace mozilla::IsFloatingPoint with std::is_floating_point. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68370

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:15 +00:00
André Bargull aae2042c40 Bug 1625138 - Part 9: Replace mozilla::IsArithmetic with std::is_arithmetic. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D68363

--HG--
extra : moz-landing-system : lando
2020-03-28 13:57:13 +00:00
Emilio Cobos Álvarez 980c6f3033 Bug 1621044 - Update rkv. r=vporof
See last patch of this bug for the third_party/ changes.

Differential Revision: https://phabricator.services.mozilla.com/D66279

--HG--
extra : moz-landing-system : lando
2020-03-10 21:04:51 +00:00
Sylvestre Ledru 1e23630d34 no bug - Document fuzz blockers r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D64615

--HG--
extra : moz-landing-system : lando
2020-02-28 10:52:15 +00:00
Sylvestre Ledru 6f034f2f1c Bug 1617836 - Create a new category for sanitizer in the doc r=decoder
Move the *san files from fuzzing to sanitizer

Depends on D64072

Differential Revision: https://phabricator.services.mozilla.com/D64407

--HG--
rename : tools/fuzzing/docs/asan.rst => tools/sanitizer/docs/asan.rst
rename : tools/fuzzing/docs/asan_nightly.rst => tools/sanitizer/docs/asan_nightly.rst
extra : moz-landing-system : lando
2020-02-27 15:34:12 +00:00
Sylvestre Ledru 6c4c61fc34 Bug 1617836 - Polish of the fuzzing interface doc (fix links, bad char, etc) r=decoder
Depends on D64071

Differential Revision: https://phabricator.services.mozilla.com/D64072

--HG--
extra : moz-landing-system : lando
2020-02-27 12:59:28 +00:00
Sylvestre Ledru 61eb893006 Bug 1617836 - Import the Fuzzing Interface doc from mdn r=decoder
Depends on D64070

Differential Revision: https://phabricator.services.mozilla.com/D64071

--HG--
extra : moz-landing-system : lando
2020-02-27 11:41:00 +00:00
Sylvestre Ledru b4c99237f6 Bug 1617836 - Reference the asan docs in the menu r=decoder
Depends on D64069

Differential Revision: https://phabricator.services.mozilla.com/D64070

--HG--
extra : moz-landing-system : lando
2020-02-27 11:43:43 +00:00
Sylvestre Ledru 880cf816cb Bug 1617836 - Polish of the asan nightly doc (fix links, bad char, etc) r=decoder
Depends on D64068

Differential Revision: https://phabricator.services.mozilla.com/D64069

--HG--
extra : moz-landing-system : lando
2020-02-27 11:42:42 +00:00
Sylvestre Ledru 52d0543647 Bug 1617836 - Import the asan nightly doc in-tree without any change r=decoder
Depends on D64032

Differential Revision: https://phabricator.services.mozilla.com/D64068

--HG--
extra : moz-landing-system : lando
2020-02-27 11:42:14 +00:00
Sylvestre Ledru 0f0ce6d1f5 Bug 1617836 - Polish of the asan doc (fix links, bad char, etc) r=decoder
Depends on D64031

Differential Revision: https://phabricator.services.mozilla.com/D64032

--HG--
extra : moz-landing-system : lando
2020-02-27 11:36:28 +00:00
Sylvestre Ledru 990effdd96 Bug 1617836 - Import the asan doc in-tree without any change r=decoder
Created with:
$ pandoc -t rst https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Testing/Firefox_and_Address_Sanitizer\?raw\=1 > asan.rst

Differential Revision: https://phabricator.services.mozilla.com/D64031

--HG--
extra : moz-landing-system : lando
2020-02-27 11:34:44 +00:00
Sylvestre Ledru a32d77d924 Bug 1617186 - Reformat the fuzzing rust files r=truber
done with:
$ ./mach lint -l rustfmt --fix tools/fuzzing/rust/src/lib.rs

Differential Revision: https://phabricator.services.mozilla.com/D63664

--HG--
extra : moz-landing-system : lando
2020-02-21 17:01:29 +00:00
Andrea Marchesini b13b3b72d2 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 2 - CloneDataPolicy in writing, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61182

--HG--
extra : moz-landing-system : lando
2020-02-06 13:46:25 +00:00
Sylvestre Ledru f8fbaf286d No bug - fuzzing: update of the doc to point to matrix instead of slack r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D61790

--HG--
extra : moz-landing-system : lando
2020-02-06 10:23:35 +00:00
Narcis Beleuzu d259fe38d8 Backed out 13 changesets (bug 1611855) for wpt failures on /audioworklet-postmessage-sharedarraybuffer.https.html . CLOSED TREE
Backed out changeset 2b661d588f96 (bug 1611855)
Backed out changeset 16094fc92bc9 (bug 1611855)
Backed out changeset 3f89bbcaff92 (bug 1611855)
Backed out changeset a906501b6d92 (bug 1611855)
Backed out changeset 54738b88425d (bug 1611855)
Backed out changeset d27de910a6c0 (bug 1611855)
Backed out changeset 261902f6336d (bug 1611855)
Backed out changeset 380d83b61e62 (bug 1611855)
Backed out changeset 39aac60ebf5e (bug 1611855)
Backed out changeset 5ea099787376 (bug 1611855)
Backed out changeset d0f58871f838 (bug 1611855)
Backed out changeset e1be102310a9 (bug 1611855)
Backed out changeset 633357835540 (bug 1611855)

--HG--
rename : dom/base/test/test_postMessages_workers.html => dom/base/test/test_postMessages.html
2020-02-06 12:31:36 +02:00
Andrea Marchesini 87b1a8a547 Bug 1611855 - Worklet must be part of the same parent's agentCluster - part 2 - CloneDataPolicy in writing, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D61182

--HG--
extra : moz-landing-system : lando
2020-02-05 22:07:34 +00:00
Victor Porof 6e4c49c023 Bug 1608676 - Add multithreaded scenarios to RKV function calls fuzzing, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59620

--HG--
extra : moz-landing-system : lando
2020-01-18 07:54:59 +00:00
Victor Porof c931810830 Bug 1608624 - Add more variation to RKV function calls fuzzing by interspersing fuzzing data with fuzzing opts, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59619

--HG--
extra : moz-landing-system : lando
2020-01-18 07:54:36 +00:00
Victor Porof 620922e8dc Bug 1608624 - Pre: Fix typo resulting in max_dbs always being at least '2', r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59626

--HG--
extra : moz-landing-system : lando
2020-01-18 07:54:12 +00:00
Victor Porof 252026d13e Bug 1608624 - Pre: Remove unnecessary key/value tuple, a single predefined vector is sufficient, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D59618

--HG--
extra : moz-landing-system : lando
2020-01-18 07:53:44 +00:00
Victor Porof e23a8a366d Bug 1601946 - Implement an elaborate RKV API fuzzing test, r=truber
Depends on D56336

Differential Revision: https://phabricator.services.mozilla.com/D56337

--HG--
extra : moz-landing-system : lando
2020-01-10 08:58:14 +00:00
Victor Porof 595b0a6768 Bug 1601946 - Pre 1: Add a fuzzing test for database names, r=truber
Depends on D56335

Differential Revision: https://phabricator.services.mozilla.com/D56336

--HG--
extra : moz-landing-system : lando
2020-01-10 08:57:30 +00:00
Victor Porof de4eb52c3b Bug 1601946 - Pre 0: Avoid silently ignoring errors and returning early, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D56335

--HG--
extra : moz-landing-system : lando
2020-01-10 08:56:57 +00:00
Chris Peterson 406763af7f Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj
This changeset is a simple find and replace of `MOZ_FALLTHROUGH` and `[[fallthrough]]`.

Unfortunately, the MOZ_FALLTHROUGH_ASSERT macro (to assert on case fallthrough in debug builds) is still necessary after switching from [[clang::fallthrough]] to [[fallthrough]] because:

* MOZ_ASSERT(false) followed by [[fallthrough]] triggers a -Wunreachable-code warning in DEBUG builds
* but MOZ_ASSERT(false) without [[fallthrough]] triggers a -Wimplicit-fallthrough warning in NDEBUG builds.

Differential Revision: https://phabricator.services.mozilla.com/D56440

--HG--
extra : moz-landing-system : lando
2019-12-20 07:16:43 +00:00
Doug Thayer 86601b48c5 Bug 1602646 - Remove vestigial references to cooperative scheduling r=froydnj
GetCurrentPhysicalThread and GetCurrentVirtualThread are, in practice,
identical, as the TLS override that GetCurrentVirtualThread depends on
is never actually set. This simply removes that and renames some things/
deletes some comments.

Rebased across https://hg.mozilla.org/mozilla-central/rev/3f0b4e206853
by Karl Tomlinson <karlt+@karlt.net>.

Differential Revision: https://phabricator.services.mozilla.com/D41247

--HG--
extra : moz-landing-system : lando
2019-12-12 00:56:53 +00:00
Christian Holler 70589853f4 Bug 1601923 - Add initial fuzzing documentation. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D56178

--HG--
extra : moz-landing-system : lando
2019-12-06 13:32:09 +00:00
Gabriele Svelto 5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55444

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
Andrew McCreight a102cb7648 Bug 1599521 - Add helper method for getting a string for the current process type. r=froydnj
I also removed the unused forward declaration of GMPLoader. It used to
be needed for the declaration of XRE_InitChildProcess.

Differential Revision: https://phabricator.services.mozilla.com/D54819

--HG--
extra : moz-landing-system : lando
2019-12-02 22:01:47 +00:00
Andrew McCreight d25c3b20ae Bug 1598787 - Rename XRE_ChildProcessTypeToString to XRE_GeckoProcessTypeToString. r=froydnj
This function works on all GeckoProcessTypes, not just those for child
processes.

Differential Revision: https://phabricator.services.mozilla.com/D54375

--HG--
extra : moz-landing-system : lando
2019-11-25 22:45:31 +00:00
Victor Porof 48062bb200 Bug 1584446 - Add an rkv fuzzing test for bug mdb_cursor_put, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D47396

--HG--
extra : moz-landing-system : lando
2019-10-02 15:17:13 +00:00
Victor Porof 71a08e56c3 Bug 1583440 - Enable fuzzer-no-link on the rkv crate when fuzzing, r=truber
Differential Revision: https://phabricator.services.mozilla.com/D46901

--HG--
extra : moz-landing-system : lando
2019-09-26 16:24:50 +00:00
Victor Porof b0783dc7ee Bug 1583439 - Update lmdb-rkv-sys, lmdb-rkv and rkv crates to their latest versions, r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D46899

--HG--
extra : moz-landing-system : lando
2019-09-26 11:52:13 +00:00
Mihai Alexandru Michis 4e1448e7e6 Backed out 2 changesets (bug 1510226) for causing xpcshell crashes and xpcshell failures in test_TelemetrySession.js CLOSED TREE
Backed out changeset cb739de6606d (bug 1510226)
Backed out changeset b6f670610dc3 (bug 1510226)
2019-09-25 04:25:07 +03:00
Doug Thayer 65be2b22c1 Bug 1510226 - Remove vestigial references to cooperative scheduling r=froydnj
GetCurrentPhysicalThread and GetCurrentVirtualThread are, in practice,
identical, as the TLS override that GetCurrentVirtualThread depends on
is never actually set. This simply removes that and renames some things/
deletes some comments.

Differential Revision: https://phabricator.services.mozilla.com/D41247

--HG--
extra : moz-landing-system : lando
2019-08-20 18:03:11 +00:00
Jesse Schwartzentruber 146562d993 Bug 1581158 - Add fuzzing target for rkv r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D45891

--HG--
rename : tools/fuzzing/moz.build => tools/fuzzing/rust/moz.build
extra : moz-landing-system : lando
2019-09-20 21:27:35 +00:00
Christian Holler 6223028546 Bug 1580128 - Simplify required env variables for fuzzing interface. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D45318

--HG--
extra : moz-landing-system : lando
2019-09-10 14:33:58 +00:00
Christian Holler 75691588ac Bug 1561346 - Allow FUZZING_INTERFACE_STREAM to be used multiple times. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D35824

--HG--
extra : moz-landing-system : lando
2019-06-25 22:02:52 +00:00