Projects
openEuler:Mainline
libyaml
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:libyaml.spec
Changed
@@ -1,12 +1,13 @@ Name: libyaml Version: 0.2.5 -Release: 3 +Release: 4 Summary: A C library for parsing and emitting YAML License: MIT URL: http://pyyaml.org/ Source0: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz Patch0: fix-heap-buffer-overflow-in-yaml_emitter_emit_flow_m.patch +Patch1: fix-heap-buffer-overflow-error-in-yaml-emitter-emit.patch BuildRequires: gcc @@ -69,6 +70,9 @@ %changelog +* Fri Nov 18 2022 chenziyang <chenziyang4@huawei.com> - 0.2.5-4 +- Fix heap buffer overflow in yaml_emitter_emit_flow_sequence_item + * Mon Apr 18 2022 panxiaohe <panxh.life@foxmail.com> - 0.2.5-3 - fix heap buffer overflow in yaml_emitter_emit_flow_mapping_key
View file
_service:tar_scm:fix-heap-buffer-overflow-error-in-yaml-emitter-emit.patch
Added
@@ -0,0 +1,32 @@ +From cbd860b8e62ec0dc85d4d76a9a8900a3db9c740c Mon Sep 17 00:00:00 2001 +From: chenziyang <chenziyang4@huawei.com> +Date: Tue, 8 Nov 2022 11:15:36 +0800 +Subject: PATCH Fix heap buffer overflow error in + yaml_emitter_emit_flow_sequence_item function + +--- + src/emitter.c | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/emitter.c b/src/emitter.c +index 609b28a..336bfd1 100644 +--- a/src/emitter.c ++++ b/src/emitter.c +@@ -758,7 +758,13 @@ yaml_emitter_emit_flow_sequence_item(yaml_emitter_t *emitter, + if (event->type == YAML_SEQUENCE_END_EVENT) + { + emitter->flow_level --; +- emitter->indent = POP(emitter, emitter->indents); ++ if (!STACK_EMPTY(emitter, emitter->indents)) { ++ emitter->indent = POP(emitter, emitter->indents); ++ } ++ else { ++ emitter->indent = 0; // set to default ++ } ++ + if (emitter->canonical && !first) { + if (!yaml_emitter_write_indicator(emitter, ",", 0, 0, 0)) + return 0; +-- +2.21.0.windows.1 +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/libyaml.git</param> - <param name="revision">d82d31d26170d8b5db085f553a3300b6e0f3bf4a</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2