Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2-libc
  Commit: 79beb3dd9cb3690916805e16f1ab45bee543abab
      
https://github.com/tianocore/edk2-libc/commit/79beb3dd9cb3690916805e16f1ab45bee543abab
  Author: Kloper Dimitry <dimitry.klo...@intel.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

  Changed paths:
    M StdLib/LibC/Uefi/Devices/Console/daConsole.c

  Log Message:
  -----------
  edk2-libc/StdLib: Fix console jump to 0, 0 issue in lseek()

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4531

Python code opens console file descriptor and uses lseek()
with position == 0 and SEEK_CUR as
'do nothing, check console is alive' operation.

Current implementation of daConsole ignores whence argument,
this is wrong in case lseek(0, SEEK_CUR) will send cursor to (0,0).
This fix is not generic, but solves the particular situation.

Cc: Rebecca Cran <rebe...@bsdio.com>
Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Jayaprakash N <n.jayaprak...@intel.com>
Signed-off-by: Kloper Dimitry <dimitry.klo...@intel.com>
Reviewed-by: Jayaprakash N <n.jayaprak...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to