Package: pdfmod / 0.9.1-8

Avoid-reusing-goto-label-names.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From: Chow Loong Jin <hyperair@debian.org>
Date: Mon, 13 Oct 2014 18:05:00 +0800
Subject: Avoid reusing goto label names

Bug-Debian: https://bugs.debian.org/759237
---
 lib/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs | Bin 38598 -> 38602 bytes
 lib/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs       |   4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs b/lib/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs
index c54c0b5..e8c626f 100644
--- a/lib/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs
+++ b/lib/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs
@@ -382,7 +382,7 @@
         // 8-bit characters

         while (true)

         {

-        SkipChar:

+        SkipChar2:

           switch (ch)

           {

             case '(':

@@ -437,7 +437,7 @@
 

                   case Chars.LF:

                     ch = ScanNextChar();

-                    goto SkipChar;

+                    goto SkipChar2;

 

                   default:

                     if (Char.IsDigit(ch))

diff --git a/lib/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs b/lib/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs
index d573965..e6d17cc 100644
--- a/lib/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs
+++ b/lib/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs
@@ -608,7 +608,7 @@ namespace PdfSharp.Pdf.IO
         // 8-bit characters
         while (true)
         {
-        SkipChar:
+        SkipChar2:
           switch (ch)
           {
             case '(':
@@ -664,7 +664,7 @@ namespace PdfSharp.Pdf.IO
 
                   case Chars.LF:
                     ch = ScanNextChar();
-                    goto SkipChar;
+                    goto SkipChar2;
 
                   default:
                     if (char.IsDigit(ch))