[gnutls-devel] GnuTLS | gnutls-serv --echo exits when a message is received (#959)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Mar 24 11:24:28 CET 2020



Anderson Sasaki created an issue: https://gitlab.com/gnutls/gnutls/-/issues/959



## Description of problem:
The bug was initially reported in https://bugzilla.redhat.com/show_bug.cgi?id=1816583

When ``gnutls-serv`` is executed with the ``--echo`` option, it exits when a message to be echoed is received. It outputs
```
Memory error
```

## Version of gnutls used:
gnutls-3.6.12

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Fedora 32

## How reproducible:
100%

Steps to Reproduce:
 * Generate server private key and certificate
 * Run the server with ``--echo`` option. For example:
```
$ gnutls-serv --echo --x509certfile=cert.pem --x509keyfile=key.pem -p 4433
```
 * Connect using a client and send a message to be echoed. For example, run:
```
$ gnutls-cli --insecure localhost:4433
```
Type the message to be echoed.

## Actual results:
Server closes connection and outputs:
```
Memory error
```

## Expected results:
Server sends a copy of the received message to the client without closing the connection.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/959
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200324/e0291f30/attachment.html>


More information about the Gnutls-devel mailing list