Suppress unsafe_libc_call warning for initial identified files.
See docs/unsafe_buffers.md for details. Enforcement is not yet enabled, but this set of files are not in compliance with the new warnings. Bug: 390223051 Change-Id: I4e24c2141b9399f572678302c833947494098b29 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6187925 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Owners-Override: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1412673}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
501d0be6a0
commit
8726d30ed0
base
atomicops_unittest.cccheck.cccheck_op.cc
containers
debug
files
json
linux_util.ccmemory
aligned_memory_unittest.ccmadv_free_discardable_memory_allocator_posix_unittest.ccmadv_free_discardable_memory_posix_unittest.ccsafety_checks_unittest.cc
message_loop
metrics
field_trial.cchistogram_samples.cchistogram_threadsafe_unittest.ccpersistent_histogram_storage.ccsample_vector_unittest.ccstatistics_recorder.cc
numerics
pickle.ccprocess
profiler
rand_util_posix.ccsecurity_unittest.ccstrings
system
test
trace_event
types
uuid.cccc
base
layers
metrics
paint
display_item_list_unittest.ccpaint_op_writer_reader_unittest.ccraw_memory_transfer_cache_entry.ccskottie_transfer_cache_entry.cc
scheduler
test
trees
chrome
browser
apps
autofill
automated_tests
browser_switcher
chrome_browser_main_posix.ccdevtools
diagnostics
dom_distiller
download
enterprise
connectors
data_protection
extensions
activity_log
api
browsing_data
downloads
font_settings
image_writer_private
messaging
runtime
socket
media
router
discovery
providers
webrtc
new_tab_page
policy
printing
resource_coordinator
safe_browsing
client_side_detection_host_browsertest.cc
cloud_content_scanning
screen_ai
sessions
signin
bound_session_credentials
spellchecker
ssl
support_tool
sync
test
integration
ui
browser_navigator.ccbrowser_navigator_browsertest.cc
unload_browsertest.cclens
test
toolbar
views
desktop_capture
extensions
tabs
web_apps
webui
side_panel
customize_chrome
wallpaper_search
user_education_internals
upgrade_detector
user_education
webauthn
common
enterprise_companion
renderer
accessibility
read_anything
autofill
safe_browsing
services
test
chromedriver
tools
convert_dict
updater
components
autofill
core
browser
foundations
breadcrumbs
client_update_protocol
contextual_search
core
crash
core
app
cronet
discardable_memory
dom_distiller
download
internal
common
encrypted_messages
enterprise
idle
eye_dropper
facilitated_payments
core
validation
favicon_base
feature_engagement
feedback
redaction_tool
fingerprinting_protection_filter
browser
flags_ui
guest_view
browser
gwp_asan
crash_handler
lens
media_router
common
metrics
mirroring
service
omnibox
optimization_guide
core
os_crypt
paint_preview
performance_manager
policy
core
common
power_metrics
prefs
reporting
encryption
safe_browsing
content
browser
renderer
phishing_classifier
search
search_engines
search_provider_logos
segmentation_platform
services
on_device_translation
storage
indexed_db
transactional_leveldb
service_worker
sessions
signin
internal
storage_monitor
subresource_filter
content
tools
supervised_user
core
sync_device_info
trusted_vault
ui_devtools
update_client
url_matcher
user_education
variations
net
service
visitedlink
common
viz
client
common
service
webcrypto
algorithms
webrtc
zucchini
content
app
browser
attribution_reporting
background_fetch
background_sync
browsing_data
cache_storage
devtools
download
file_system_access
indexed_db
interest_group
isolated_origin_util.ccmedia
network_context_client_base_impl_unittest.ccrenderer_host
service_process_host_browsertest.ccservice_worker
shape_detection
speech
tracing
utility_process_host_browsertest.ccweb_package
mock_signed_exchange_handler.ccprefetched_signed_exchange_cache.ccsigned_exchange_prologue.ccsigned_exchange_signature_header_field.cc
webauth
webid
zygote_host
common
public
renderer
services
auction_worklet
shell
test
fuzzer
web_test
crypto
dbus
device
extensions
browser
api
guest_view
web_view
socket
storage
system_cpu
common
renderer
gin
google_apis/gaia
gpu
command_buffer
client
client_font_manager.cccmd_buffer_helper.hdawn_client_memory_transfer_service.ccquery_tracker_unittest.cc
common
service
dawn_caching_interface.ccdawn_caching_interface_unittest.ccdawn_platform.ccgles2_cmd_decoder.hgles2_cmd_decoder_passthrough_unittest_textures.ccgr_shader_cache_unittest.ccmemory_program_cache.ccraster_decoder_unittest_base.hrenderbuffer_manager.ccservice_font_manager.ccshader_translator_cache.hshader_translator_cache_unittest.ccshared_context_state.cc
shared_image
tests
config
ipc
service
vulkan
headless
app
lib
ipc
ipc_channel_mojo_unittest.ccipc_channel_reader_unittest.ccipc_message_utils_unittest.ccsync_socket_unittest.cc
media
audio
base
audio_block_fifo_unittest.ccchannel_mixer.cccodec_worker_impl.hcontainer_names_unittest.ccsilent_sink_suspender_unittest.ccstatus_unittest.ccvideo_frame_pool_unittest.cc
capture
video
cast
openscreen
cdm
filters
dav1d_video_decoder_unittest.ccffmpeg_glue.ccframe_processor_unittest.ccin_memory_url_protocol.ccmemory_data_source.ccvpx_video_decoder_unittest.cc
formats
gpu
h264_builder_unittest.cch264_dpb.ccmacros.h
vaapi
learning
common
midi
mojo
common
mojom
services
muxers
renderers
mojo
core
proxy
public
cpp
bindings
tests
tools
net
base
address_list_unittest.ccaddress_tracker_linux.ccaddress_tracker_linux_unittest.ccdatagram_buffer.ccdatagram_buffer_unittest.ccfilename_util.cchash_value.cchash_value.hhost_mapping_rules_unittest.ccip_endpoint.ccip_endpoint_unittest.cclookup_string_in_fixed_set_unittest.ccnetwork_interfaces_linux.ccnetwork_interfaces_linux_unittest.ccsockaddr_util_posix.cc
cert
cert_verify_proc.cccrl_set.ccct_log_response_parser.ccct_log_verifier.ccct_objects_extractor.ccct_objects_extractor_unittest.cc
internal
known_roots.ccknown_roots_unittest.ccmerkle_tree_leaf_unittest.ccsigned_tree_head.ccx509_certificate.ccx509_util_nss.cccookies
disk_cache
blockfile
simple
dns
dns_names_util_unittest.ccdns_query_parse_fuzzer.ccdns_response_fuzzer.ccmock_mdns_socket_factory.cc
public
http
http_auth_gssapi_posix_unittest.cchttp_cache_unittest.cchttp_cache_writers.cchttp_response_body_drainer_unittest.cchttp_response_headers.cchttp_stream_parser.cchttp_vary_data.ccmock_gssapi_library_posix.cctest_upload_data_stream_not_allow_http1.cc
log
proxy_resolution
quic
address_utils.h
crypto
mock_decrypter.ccmock_encrypter.ccquic_chromium_client_stream.ccquic_chromium_client_stream_test.ccquic_chromium_packet_writer.ccquic_network_transaction_unittest.ccquic_proxy_client_socket_unittest.ccquic_proxy_datagram_client_socket.ccquic_proxy_datagram_client_socket_unittest.ccreporting
socket
read_buffering_stream_socket.ccsocket_bio_adapter_unittest.ccsocket_test_util.hsocks_client_socket.ccsocks_client_socket_unittest.cctcp_client_socket_unittest.cctcp_server_socket_unittest.cctransport_client_socket_test_util.cctransport_client_socket_unittest.ccudp_socket_perftest.cc
spdy
test
tools
url_request
pdf
loader
pdfium
test
printing
remoting
base
host
protocol
channel_socket_adapter.ccchromium_socket_factory.ccice_config.ccpseudotcp_adapter.ccwebrtc_connection_to_host.cc
signaling
test
sandbox/linux
bpf_dsl
integration_tests
services
tests
services
audio
device
hid
serial
usb
mojo
network
chunked_data_pipe_upload_data_stream_unittest.ccmdns_responder.cc
orb
prefetch_matches.ccproxy_resolving_socket_mojo_unittest.ccpublic
shared_dictionary
tcp_bound_socket_unittest.cctcp_socket_unittest.ccurl_loader_unittest.ccproxy_resolver
screen_ai
tracing
perfetto
public
cpp
viz
public
cpp
hit_test
webnn
skia
ext
SkMemory_new_handler.cppevent_tracer_impl.ccimage_operations_bench.ccskia_trace_memory_dump_impl.ccskottie_unittest.cc
public
mojom
sql
storage/browser
third_party/blink
common
public
common
input
renderer
bindings
core
controller
core
css
dom
events
fetch
frame
html
inspector
layout
inline
loader
messaging
mojo
page
paint
svg
trustedtypes
typed_arrays
workers
xml
parser
modules
breakout_box
canvas
canvas2d
clipboard
compression
crypto
encryptedmedia
gamepad
indexeddb
mediarecorder
mediastream
ml
webnn
peerconnection
webaudio
webcodecs
webgl
webgpu
platform
audio
bindings
blob
disk_data_allocator_test.ccexported
fonts
geometry
graphics
image-decoders
loader
media
network
peerconnection
text
webrtc
wtf
ui
accessibility
base
interaction
resource
test
x
display
events
gfx
gl
ozone
demo
platform
qt
views
examples
wm
core
url
@ -2,6 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef UNSAFE_BUFFERS_BUILD
|
||||
// TODO(crbug.com/390223051): Remove C-library calls to fix the errors.
|
||||
#pragma allow_unsafe_libc_calls
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
|
@ -2,6 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef UNSAFE_BUFFERS_BUILD
|
||||
// TODO(crbug.com/390223051): Remove C-library calls to fix the errors.
|
||||
#pragma allow_unsafe_libc_calls
|
||||
#endif
|
||||
|
||||
#include "components/sessions/core/session_service_commands.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
@ -2,6 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef UNSAFE_BUFFERS_BUILD
|
||||
// TODO(crbug.com/390223051): Remove C-library calls to fix the errors.
|
||||
#pragma allow_unsafe_libc_calls
|
||||
#endif
|
||||
|
||||
#include "components/sessions/core/tab_restore_service_impl.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
Reference in New Issue
Block a user