Ticket #46527

off by one buffer overflow

Date d'ouverture: 2023-01-17 06:09 Dernière mise à jour: 2023-03-21 08:38

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Jalon:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
1

Ticket History (3/8 Histories)

2023-01-17 06:09 Updated by: mortmann
  • New Ticket "off by one buffer overflow" created
2023-01-17 06:21 Updated by: cazfi
Commentaire

Reply To mortmann

and the following statement is always TRUE and can therefore be removed:

More than that, the entire real_activities array can be removed now that there's no non-real activities (holes) in the activities enum. I just didn't do it in at the same commit as removal of those non-real activities.

As for the reported bug, is it present in older branches too? (Likely so, don't think the code has changed)

2023-03-18 12:33 Updated by: cazfi
Commentaire

Reply To cazfi

As for the reported bug, is it present in older branches too? (Likely so, don't think the code has changed)

No that I looked at it; yes and no. Older branches avoid actual over-boundaries write by luck. As they have also dummy activities included in the ACTIVITY_LAST count used in determining the size of the target array.

2023-03-18 12:33 Updated by: cazfi
  • Jalon Update from (Aucun) to 3.0.7 (atteints)
  • Composant Update from (Aucun) to General
2023-03-18 12:45 Updated by: cazfi
2023-03-18 12:56 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
2023-03-21 08:38 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion