[PR #2020] [MERGED] #2019 : avoid illegal casts on large integers #12296

Closed
opened 2025-12-29 22:20:44 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2020
Author: @frankfarmer
Created: 4/10/2018
Status: Merged
Merged: 4/12/2018
Merged by: @jeremystretch

Base: developHead: intfix


📝 Commits (1)

  • 2c8bea1 avoid illegal casts on large integers

📊 Changes

1 file changed (+7 additions, -7 deletions)

View changed files

📝 netbox/dcim/querysets.py (+7 -7)

📄 Description

Fixes: #2019

The modified regexes here should prevent literals outside of postgres' legal range from being matched.

A similar fix was applied in e5e32d82d00e454ba5edf25316828c1cdcd7673e


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/2020 **Author:** [@frankfarmer](https://github.com/frankfarmer) **Created:** 4/10/2018 **Status:** ✅ Merged **Merged:** 4/12/2018 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `intfix` --- ### 📝 Commits (1) - [`2c8bea1`](https://github.com/netbox-community/netbox/commit/2c8bea1b5974c99777f17f6d7aec2041cd689cdb) avoid illegal casts on large integers ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/querysets.py` (+7 -7) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. --> ### Fixes: #2019 <!-- Please include a summary of the proposed changes below. --> The modified regexes here should prevent literals outside of postgres' legal range from being matched. A similar fix was applied in e5e32d82d00e454ba5edf25316828c1cdcd7673e --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:20:44 +01:00
adam closed this issue 2025-12-29 22:20:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12296