Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788370 - =app-text/wgetpaste-2.30_p20210222-r2 incorrect handling of string escape sequences
Summary: =app-text/wgetpaste-2.30_p20210222-r2 incorrect handling of string escape seq...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-05-05 16:26 UTC by Oskari Pirhonen
Modified: 2021-05-05 16:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Commit 8bac25 which fixes the issue (wgetpaste-2.30-do-not-interpret-content-when-posting-to-dpaste.patch,477 bytes, patch)
2021-05-05 16:26 UTC, Oskari Pirhonen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oskari Pirhonen 2021-05-05 16:26:10 UTC
Created attachment 706200 [details, diff]
Commit 8bac25 which fixes the issue

The current version, 2.30_p20210222-r2, mishandles escape sequences such as "\n". For example, the following snippet of code:
```
#include <stdio.h>

int main (void) {
    int x = 9001;

    if (1 <= x <= 10) {
        printf("blah\n");
    }
}
```
gets pasted into dpaste as
```
#include <stdio.h>

int main (void) {
    int x = 9001;

    if (1 <= x <= 10) {
        printf("blah
");
    }
}
```

The latest commit on master, https://github.com/zlin/wgetpaste/commit/8bac25377cf2c447c439c04837ea178d6a0f845c, fixes this issue.
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-05-05 16:35:17 UTC
ask upstream for a new release really.
Comment 2 Oskari Pirhonen 2021-05-05 16:58:12 UTC
(In reply to Mikle Kolyada from comment #1)
> ask upstream for a new release really.

Apologies, will do.