Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 575534 Details for
Bug 682922
=app-misc/lirc-0.10.1 with dev-python/pyyaml-5.1 - RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
simple patch (replace function "load" to "safe_load")
fix_call_load_func.patch (text/plain), 1.57 KB, created by
Atlant
on 2019-05-08 15:18:06 UTC
(
hide
)
Description:
simple patch (replace function "load" to "safe_load")
Filename:
MIME Type:
Creator:
Atlant
Created:
2019-05-08 15:18:06 UTC
Size:
1.57 KB
patch
obsolete
>diff -Nudr lirc-0.10.1-orig/python-pkg/lirc/database.py lirc-0.10.1/python-pkg/lirc/database.py >--- lirc-0.10.1-orig/python-pkg/lirc/database.py 2017-09-10 15:52:19.000000000 +0700 >+++ lirc-0.10.1/python-pkg/lirc/database.py 2019-05-08 22:10:21.064689730 +0700 >@@ -66,7 +66,7 @@ > ''' > > with open(os.path.join(configdir, "kernel-drivers.yaml")) as f: >- cf = yaml.load(f.read()) >+ cf = yaml.safe_load(f.read()) > drivers = cf['drivers'].copy() > for driver in cf['drivers']: > if driver == 'default': >@@ -132,14 +132,14 @@ > yamlpath = configdir > db = {} > with open(os.path.join(yamlpath, "confs_by_driver.yaml")) as f: >- cf = yaml.load(f.read()) >+ cf = yaml.safe_load(f.read()) > db['lircd_by_driver'] = cf['lircd_by_driver'].copy() > db['lircmd_by_driver'] = cf['lircmd_by_driver'].copy() > > db['kernel-drivers'] = _load_kerneldrivers(configdir) > db['drivers'] = db['kernel-drivers'].copy() > with open(os.path.join(yamlpath, "drivers.yaml")) as f: >- cf = yaml.load(f.read()) >+ cf = yaml.safe_load(f.read()) > db['drivers'].update(cf['drivers'].copy()) > for key, d in db['drivers'].items(): > d['id'] = key >@@ -158,7 +158,7 @@ > configs = {} > for path in glob.glob(configdir + '/*.conf'): > with open(path) as f: >- cf = yaml.load(f.read()) >+ cf = yaml.safe_load(f.read()) > configs[cf['config']['id']] = cf['config'] > db['configs'] = configs > self.db = db
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 682922
:
572298
| 575534