Skip to content

Setting string Length longer than 127 chars crashes upsset.cgi #3545

Description

@bradlsi-01

If the string length for a UPS setting is longer than 127 characters an assert fails in function do_type in upsset.c which stops the settings view from displaying in the web GUI.

The particular line is already flagged for action:

assert(l <= 127); /* FIXME: Loophole about longer numbers? Why are we limited to char at all here?

I'm not competent to change it but could somebody who is take a look? This is relevant because several of the string values on the APC devices I'm trying to control have a max length128

The error returned is:

upsset.cgi: upsset.c:766: do_type: Assertion l <= 127' failed.`

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions