Skip to content

Commit

Permalink
Fixed infinite loop vulnerability that gave me a NCEP NOMADS temp ban…
Browse files Browse the repository at this point in the history
… that is ongoing as of the time of this commit.
  • Loading branch information
a-urq committed Nov 20, 2023
1 parent 772e997 commit 7b3756a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified bin/com/ameliaWx/soundingViewer/unixTool/nwp/ModelDerived.class
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public static void main(String[] args) {

public static Sounding getGfsSounding(double lat, double lon) {
DateTime now = DateTime.now(DateTimeZone.UTC);
now.minusMinutes(now.getMinuteOfHour());
now.minusHours(now.getHourOfDay() % 6);
System.out.println("before aligning: " + now);
now = now.minusMinutes(now.getMinuteOfHour());
now = now.minusHours(now.getHourOfDay() % 6);
System.out.println("after aligning: " + now);

Sounding gfsSounding = null;
while(true) {
Expand Down

0 comments on commit 7b3756a

Please sign in to comment.