Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  bad_user_table.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: Masm {Masm[64] SQL[44] ABAP[36]} [Methode: maximale Elemente, drei Dimensionen]

source include/not_embedded.inc;

--echo #
--echo # MDEV-4462 mysqld gets SIGFPE when mysql.user table is empty
--echo #

create table t1 as select * from mysql.global_priv;
truncate table mysql.global_priv;
flush privileges;

# connecting via unix socket gives ER_ACCESS_DENIED_ERROR
# connecting via tcp/ip gives ER_HOST_NOT_PRIVILEGED
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
--error ER_ACCESS_DENIED_ERROR,ER_HOST_NOT_PRIVILEGED
connect (fail,localhost,u1);

insert mysql.global_priv select * from t1;
drop table t1;
flush privileges;

#
# same with mysql.user
#

source include/switch_to_mysql_user.inc;
truncate table mysql.user;

flush privileges;

# connecting via unix socket gives ER_ACCESS_DENIED_ERROR
# connecting via tcp/ip gives ER_HOST_NOT_PRIVILEGED
--replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
--error ER_ACCESS_DENIED_ERROR,ER_HOST_NOT_PRIVILEGED
connect (fail,localhost,u1);

source include/switch_to_mysql_global_priv.inc;

--echo #
--echo # MDEV-39266 Stack Overflow via alloca() in Privilege Table JSON Parser
--echo #

INSERT INTO mysql.global_priv (Host, User, Priv) VALUES
('localhost', 'MDEV-39266', CONCAT(
  '{"access":0,"plugin":"mysql_native_password","authentication_string":"',
  REPEAT('X', 400000),
  '","password_last_changed":0}'));
FLUSH PRIVILEGES;
DROP USER `MDEV-39266`@localhost;

--echo # End if 10.6 tests

[Dauer der Verarbeitung: 0.13 Sekunden, vorverarbeitet 2026-10-08]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1897691