[issue43587] Long string arguments cause nis.map() segfault

2021-03-22 Thread STINNER Victor


STINNER Victor  added the comment:

I can reproduce the crash. It's a not a bug in Python but in yp_master(). On my 
Fedora 33, this function comes from libnsl2 (/lib64/libnsl.so.2):

* https://bugz.fedoraproject.org/libnsl2
* https://github.com/thkukuk/libnsl

"""
This package contains the libnsl library. This library contains
the public client interface for NIS(YP) and NIS+.
This code was formerly part of glibc, but is now standalone to
be able to link against TI-RPC for IPv6 support.
"""

Please report the bug to https://bugz.fedoraproject.org/libnsl2 (or to you nis 
implementation).

--
nosy: +vstinner
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43587] Long string arguments cause nis.map() segfault

2021-03-22 Thread Xinmeng Xia


New submission from Xinmeng Xia :

nis.maps() with long string argument will lead to segfault of interpreter.  See 
the following example:

=
Python 3.10.0a6 (default, Mar 19 2021, 11:45:56) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nis;
>>> nis.maps('abs/'*1000)
Segmentation fault (core dumped)
=

System: ubuntu 16.04

--
components: Library (Lib)
messages: 389280
nosy: xxm
priority: normal
severity: normal
status: open
title: Long string arguments cause nis.map() segfault
type: crash
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com