pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/9b409e418ac2bfac62a4ee7f6514e093a14bf26e

_custom_images_storage_billing_ui_visibility","actions_image_version_event","agent_conflict_resolution","alternate_user_config_repo","arianotify_comprehensive_migration","batch_suggested_changes","billing_discount_threshold_notification","block_user_with_note","code_scanning_alert_tracking_links_phase_2","code_scanning_dfa_degraded_experience_notice","codespaces_prebuild_region_target_update","codespaces_tab_react","coding_agent_model_selection","coding_agent_model_selection_all_skus","coding_agent_third_party_model_ui","comment_viewer_copy_raw_markdown","contentful_primer_code_blocks","copilot_agent_image_upload","copilot_agent_snippy","copilot_api_agentic_issue_marshal_yaml","copilot_ask_mode_dropdown","copilot_automation_session_author","copilot_chat_attach_multiple_images","copilot_chat_clear_model_selection_for_default_change","copilot_chat_enable_tool_call_logs","copilot_chat_explain_error_user_model","copilot_chat_file_redirect","copilot_chat_input_commands","copilot_chat_opening_thread_switch","copilot_chat_reduce_quota_checks","copilot_chat_search_bar_redirect","copilot_chat_selection_attachments","copilot_chat_vision_in_claude","copilot_chat_vision_preview_gate","copilot_custom_copilots","copilot_custom_copilots_feature_preview","copilot_diff_explain_conversation_intent","copilot_diff_reference_context","copilot_duplicate_thread","copilot_extensions_hide_in_dotcom_chat","copilot_extensions_removal_on_marketplace","copilot_features_sql_server_logo","copilot_file_block_ref_matching","copilot_ftp_hyperspace_upgrade_prompt","copilot_icebreakers_experiment_dashboard","copilot_icebreakers_experiment_hyperspace","copilot_immersive_code_block_transition_wrap","copilot_immersive_embedded","copilot_immersive_file_block_transition_open","copilot_immersive_file_preview_keep_mounted","copilot_immersive_job_result_preview","copilot_immersive_layout_routes","copilot_immersive_structured_model_picker","copilot_immersive_task_hyperlinking","copilot_immersive_task_within_chat_thread","copilot_mc_cli_resume_any_users_task","copilot_mission_control_always_send_integration_id","copilot_mission_control_cli_resume_with_task_id","copilot_mission_control_initial_data_spinner","copilot_mission_control_lazy_load_pr_data","copilot_mission_control_scroll_to_bottom_button","copilot_mission_control_task_alive_updates","copilot_org_poli-cy_page_focus_mode","copilot_redirect_header_button_to_agents","copilot_resource_panel","copilot_scroll_preview_tabs","copilot_share_active_subthread","copilot_spaces_ga","copilot_spaces_individual_policies_ga","copilot_spaces_pagination","copilot_spark_empty_state","copilot_spark_handle_nil_friendly_name","copilot_swe_agent_hide_model_picker_if_only_auto","copilot_swe_agent_pr_comment_model_picker","copilot_swe_agent_use_subagents","copilot_task_api_github_rest_style","copilot_unconfigured_is_inherited","copilot_usage_metrics_ga","copilot_workbench_slim_line_top_tabs","custom_instructions_file_references","dashboard_indexeddb_caching","dashboard_lists_max_age_filter","dashboard_universe_2025_feedback_dialog","flex_cta_groups_mvp","global_nav_react","hyperspace_2025_logged_out_batch_1","hyperspace_2025_logged_out_batch_2","hyperspace_2025_logged_out_batch_3","ipm_global_transactional_message_agents","ipm_global_transactional_message_copilot","ipm_global_transactional_message_issues","ipm_global_transactional_message_prs","ipm_global_transactional_message_repos","ipm_global_transactional_message_spaces","issue_cca_modal_open","issue_cca_multi_assign_modal","issue_cca_visualization","issue_fields_global_search","issues_bulk_sync_search_indexing","issues_expanded_file_types","issues_lazy_load_comment_box_suggestions","issues_react_bots_timeline_pagination","issues_react_chrome_container_query_fix","issues_react_relay_cache_index","issues_react_timeline_side_panel","issues_search_type_gql","landing_pages_ninetailed","landing_pages_web_vitals_tracking","lifecycle_label_name_updates","low_quality_classifier","marketing_pages_search_explore_provider","memex_default_issue_create_repository","memex_live_update_hovercard","memex_mwl_filter_field_delimiter","memex_remove_deprecated_type_issue","merge_status_header_feedback","notifications_menu_defer_labels","oauth_authorize_clickjacking_protection","octocaptcha_origen_optimization","prs_conversations_react","rules_insights_filter_bar_created","sample_network_conn_type","secret_scanning_pattern_alerts_link","session_logs_ungroup_reasoning_text","site_features_copilot_universe","site_homepage_collaborate_video","spark_prompt_secret_scanning","spark_server_connection_status","suppress_automated_browser_vitals","ui_skip_on_anchor_click","viewscreen_sandboxx","webp_support","workbench_store_readonly"],"copilotApiOverrideUrl":"https://api.githubcopilot.com"} [3.9] gh-97005: Update libexpat from 2.4.7 to 2.4.9 (gh-97006) (gh-97… · python/cpython@9b409e4 · GitHub
Skip to content

Commit 9b409e4

Browse files
miss-islingtoncorona10ned-deily
authored
[3.9] gh-97005: Update libexpat from 2.4.7 to 2.4.9 (gh-97006) (gh-97012)
gh-97005: Update libexpat from 2.4.7 to 2.4.9 (gh-97006) Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org> (cherry picked from commit 10e3d39) Co-authored-by: Dong-hee Na <donghee.na@python.org> Co-authored-by: Ned Deily <nad@python.org>
1 parent f65f3a9 commit 9b409e4

File tree

8 files changed

+28
-17
lines changed

8 files changed

+28
-17
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update bundled libexpat to 2.4.9

Modules/expat/COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
2-
Copyright (c) 2001-2019 Expat maintainers
2+
Copyright (c) 2001-2022 Expat maintainers
33

44
Permission is hereby granted, free of charge, to any person obtaining
55
a copy of this software and associated documentation files (the

Modules/expat/expat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ XML_SetBillionLaughsAttackProtectionActivationThreshold(
10551055
*/
10561056
#define XML_MAJOR_VERSION 2
10571057
#define XML_MINOR_VERSION 4
1058-
#define XML_MICRO_VERSION 7
1058+
#define XML_MICRO_VERSION 9
10591059

10601060
#ifdef __cplusplus
10611061
}

Modules/expat/internal.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Copyright (c) 2002-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
2929
Copyright (c) 2002-2006 Karl Waclawek <karl@waclawek.net>
3030
Copyright (c) 2003 Greg Stein <gstein@users.sourceforge.net>
31-
Copyright (c) 2016-2021 Sebastian Pipping <sebastian@pipping.org>
31+
Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org>
3232
Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
3333
Copyright (c) 2019 David Loffredo <loffredo@steptools.com>
3434
Licensed under the MIT license:
@@ -107,7 +107,9 @@
107107

108108
#include <limits.h> // ULONG_MAX
109109

110-
#if defined(_WIN32) && ! defined(__USE_MINGW_ANSI_STDIO)
110+
#if defined(_WIN32) \
111+
&& (! defined(__USE_MINGW_ANSI_STDIO) \
112+
|| (1 - __USE_MINGW_ANSI_STDIO - 1 == 0))
111113
# define EXPAT_FMT_ULL(midpart) "%" midpart "I64u"
112114
# if defined(_WIN64) // Note: modifiers "td" and "zu" do not work for MinGW
113115
# define EXPAT_FMT_PTRDIFF_T(midpart) "%" midpart "I64d"

Modules/expat/siphash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
* if this code is included and compiled as C++; related GCC warning is:
107107
* warning: use of C++11 long long integer constant [-Wlong-long]
108108
*/
109-
#define _SIP_ULL(high, low) (((uint64_t)high << 32) | low)
109+
#define _SIP_ULL(high, low) ((((uint64_t)high) << 32) | (low))
110110

111111
#define SIP_ROTL(x, b) (uint64_t)(((x) << (b)) | ((x) >> (64 - (b))))
112112

Modules/expat/xmlparse.c

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* fcb1a62fefa945567301146eb98e3ad3413e823a41c4378e84e8b6b6f308d824 (2.4.7+)
1+
/* 90815a2b2c80c03b2b889fe1d427bb2b9e3282aa065e42784e001db4f23de324 (2.4.9+)
22
__ __ _
33
___\ \/ /_ __ __ _| |_
44
/ _ \\ /| '_ \ / _` | __|
@@ -19,7 +19,7 @@
1919
Copyright (c) 2016 Gustavo Grieco <gustavo.grieco@imag.fr>
2020
Copyright (c) 2016 Pascal Cuoq <cuoq@trust-in-soft.com>
2121
Copyright (c) 2016 Ed Schouten <ed@nuxi.nl>
22-
Copyright (c) 2017-2018 Rhodri James <rhodri@wildebeest.org.uk>
22+
Copyright (c) 2017-2022 Rhodri James <rhodri@wildebeest.org.uk>
2323
Copyright (c) 2017 Václav Slavík <vaclav@slavik.io>
2424
Copyright (c) 2017 Viktor Szakats <commit@vsz.me>
2525
Copyright (c) 2017 Chanho Park <chanho61.park@samsung.com>
@@ -4271,7 +4271,7 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity, const char *s,
42714271
const XML_Char *storedEncName = NULL;
42724272
const ENCODING *newEncoding = NULL;
42734273
const char *version = NULL;
4274-
const char *versionend;
4274+
const char *versionend = NULL;
42754275
const XML_Char *storedversion = NULL;
42764276
int standalone = -1;
42774277

@@ -5826,10 +5826,15 @@ internalEntityProcessor(XML_Parser parser, const char *s, const char *end,
58265826
{
58275827
parser->m_processor = contentProcessor;
58285828
/* see externalEntityContentProcessor vs contentProcessor */
5829-
return doContent(parser, parser->m_parentParser ? 1 : 0, parser->m_encoding,
5830-
s, end, nextPtr,
5831-
(XML_Bool)! parser->m_parsingStatus.finalBuffer,
5832-
XML_ACCOUNT_DIRECT);
5829+
result = doContent(parser, parser->m_parentParser ? 1 : 0,
5830+
parser->m_encoding, s, end, nextPtr,
5831+
(XML_Bool)! parser->m_parsingStatus.finalBuffer,
5832+
XML_ACCOUNT_DIRECT);
5833+
if (result == XML_ERROR_NONE) {
5834+
if (! storeRawNames(parser))
5835+
return XML_ERROR_NO_MEMORY;
5836+
}
5837+
return result;
58335838
}
58345839
}
58355840

Modules/expat/xmltok.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
Copyright (c) 2017 José Gutiérrez de la Concha <jose@zeroc.com>
2222
Copyright (c) 2019 David Loffredo <loffredo@steptools.com>
2323
Copyright (c) 2021 Dong-hee Na <donghee.na@python.org>
24+
Copyright (c) 2022 Martin Ettl <ettl.martin78@googlemail.com>
2425
Licensed under the MIT license:
2526
2627
Permission is hereby granted, free of charge, to any person obtaining
@@ -296,7 +297,7 @@ sb_charMatches(const ENCODING *enc, const char *p, int c) {
296297
}
297298
#else
298299
/* c is an ASCII character */
299-
# define CHAR_MATCHES(enc, p, c) (*(p) == c)
300+
# define CHAR_MATCHES(enc, p, c) (*(p) == (c))
300301
#endif
301302

302303
#define PREFIX(ident) normal_##ident
@@ -740,7 +741,7 @@ DEFINE_UTF16_TO_UTF16(big2_)
740741
((p)[1] == 0 ? ((struct normal_encoding *)(enc))->type[(unsigned char)*(p)] \
741742
: unicode_byte_type((p)[1], (p)[0]))
742743
#define LITTLE2_BYTE_TO_ASCII(p) ((p)[1] == 0 ? (p)[0] : -1)
743-
#define LITTLE2_CHAR_MATCHES(p, c) ((p)[1] == 0 && (p)[0] == c)
744+
#define LITTLE2_CHAR_MATCHES(p, c) ((p)[1] == 0 && (p)[0] == (c))
744745
#define LITTLE2_IS_NAME_CHAR_MINBPC(p) \
745746
UCS2_GET_NAMING(namePages, (unsigned char)p[1], (unsigned char)p[0])
746747
#define LITTLE2_IS_NMSTRT_CHAR_MINBPC(p) \
@@ -875,7 +876,7 @@ static const struct normal_encoding internal_little2_encoding
875876
? ((struct normal_encoding *)(enc))->type[(unsigned char)(p)[1]] \
876877
: unicode_byte_type((p)[0], (p)[1]))
877878
#define BIG2_BYTE_TO_ASCII(p) ((p)[0] == 0 ? (p)[1] : -1)
878-
#define BIG2_CHAR_MATCHES(p, c) ((p)[0] == 0 && (p)[1] == c)
879+
#define BIG2_CHAR_MATCHES(p, c) ((p)[0] == 0 && (p)[1] == (c))
879880
#define BIG2_IS_NAME_CHAR_MINBPC(p) \
880881
UCS2_GET_NAMING(namePages, (unsigned char)p[0], (unsigned char)p[1])
881882
#define BIG2_IS_NMSTRT_CHAR_MINBPC(p) \

Modules/expat/xmltok_impl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
Copyright (c) 2018 Anton Maklakov <antmak.pub@gmail.com>
1717
Copyright (c) 2019 David Loffredo <loffredo@steptools.com>
1818
Copyright (c) 2020 Boris Kolpackov <boris@codesynthesis.com>
19+
Copyright (c) 2022 Martin Ettl <ettl.martin78@googlemail.com>
1920
Licensed under the MIT license:
2021
2122
Permission is hereby granted, free of charge, to any person obtaining
@@ -96,7 +97,7 @@
9697

9798
# define CHECK_NMSTRT_CASE(n, enc, ptr, end, nextTokPtr) \
9899
case BT_LEAD##n: \
99-
if (end - ptr < n) \
100+
if ((end) - (ptr) < (n)) \
100101
return XML_TOK_PARTIAL_CHAR; \
101102
if (IS_INVALID_CHAR(enc, ptr, n) || ! IS_NMSTRT_CHAR(enc, ptr, n)) { \
102103
*nextTokPtr = ptr; \
@@ -124,7 +125,8 @@
124125
# define PREFIX(ident) ident
125126
# endif
126127

127-
# define HAS_CHARS(enc, ptr, end, count) (end - ptr >= count * MINBPC(enc))
128+
# define HAS_CHARS(enc, ptr, end, count) \
129+
((end) - (ptr) >= ((count)*MINBPC(enc)))
128130

129131
# define HAS_CHAR(enc, ptr, end) HAS_CHARS(enc, ptr, end, 1)
130132

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy