bugghostscript - Bugs: bug #65284, Interpeter does not exit/complete...

 
 

bug #65284: Interpeter does not exit/complete or throw error with large number of dictionary keys when key is integertype

Submitter:  None
Submitted:  Fri 09 Feb 2024 09:28:36 PM UTC
   
 
Category:  postscript interpreter Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 09 Feb 2024 09:34:38 PM UTC, comment #1: 

I am the original submitter. Sorry, I submitted and only after created an account.

Glen Newton <gnewton>
Fri 09 Feb 2024 09:28:36 PM UTC, original submission:  

When a large number of entries are added to a dictionary, and the key is an integertype, the interpreter hangs at ~11,300,000 entries. It does not exit or throw an exception.
See attached minimal reproducible example: int_key.ps
Possible denial-of-service.

In contrast, when the key is a string, the same program (string_int.ps, attached) terminates with a /limitcheck error just over 1,000,000 entries.


Tested with GPL Ghostscript 9.55.0 (2021-09-27) on Linux 5.15.0-78-generic x86_64 Ubuntu 22.04.3 LTS

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gnewton (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code